Searched refs:GuardName (Results 1 – 4 of 4) sorted by relevance
373 std::string GuardName(FileName); in createInsertedReplacements() local375 for (size_t i = 0; i < GuardName.size(); ++i) { in createInsertedReplacements()376 if (!isAlphanumeric(GuardName[i])) in createInsertedReplacements()377 GuardName[i] = '_'; in createInsertedReplacements()379 GuardName = StringRef(GuardName).upper(); in createInsertedReplacements()380 NewCode += "#ifndef " + GuardName + "\n"; in createInsertedReplacements()381 NewCode += "#define " + GuardName + "\n\n"; in createInsertedReplacements()451 NewCode += "\n#endif // " + GuardName + "\n"; in createInsertedReplacements()
1705 def GuardName(name): member in CCodeGenerator1712 guard = self.GuardName(name)1740 guard = self.GuardName(name)
2386 SmallString<256> GuardName; in EmitGuardedInit() local2388 llvm::raw_svector_ostream Out(GuardName); in EmitGuardedInit()2400 GV->getLinkage(), Zero, GuardName.str()); in EmitGuardedInit()
2532 SmallString<256> GuardName; in EmitGuardedInit() local2534 llvm::raw_svector_ostream Out(GuardName); in EmitGuardedInit()2546 GV->getLinkage(), Zero, GuardName.str()); in EmitGuardedInit()