Lines Matching defs:Name
239 // Steal STy's name.
465 // If the source has no name it can't link. If it has local linkage,
466 // there is no name match-up going on.
475 // If we found a global with the same name in the dest module, but it has
486 void upgradeMismatchedGlobalArray(StringRef Name);
510 static void forceRenaming(GlobalValue *GV, StringRef Name) {
511 // If the global doesn't force its name or if it already has the right name,
513 if (GV->hasLocalLinkage() || GV->getName() == Name)
519 if (GlobalValue *ConflictGV = M->getNamedValue(Name)) {
521 ConflictGV->setName(Name); // This will cause ConflictGV to get renamed
522 assert(ConflictGV->getName() != Name && "forceRenaming didn't work");
524 GV->setName(Name); // Force the name back
832 // Incorporate types by name, scanning all the types in the source module.
841 // Check to see if there is a dot in the name followed by a digit.
848 // Check to see if the destination module has a struct with the prefix name.
921 void ModuleLinker::upgradeMismatchedGlobalArray(StringRef Name) {
923 auto *DstGV = dyn_cast_or_null<GlobalVariable>(DstM->getNamedValue(Name));
926 auto *SrcGV = dyn_cast_or_null<GlobalVariable>(SrcM->getNamedValue(Name));
990 "Appending variables with different section name need to be linked!");
998 DstGV->getLinkage(), /*init*/nullptr, /*name*/"", DstGV,
1136 StringRef Name = AVI.NewGV->getName();
1138 (Name == "llvm.global_ctors" || Name == "llvm.global_dtors") &&
1189 DI->setName(Arg.getName()); // Copy the name over.