llvm.org GIT mirror llvm / cab16cc
Use the GV version of getNameWithPrefix in TargetLoweringObjectFileCOFF:: SelectSectionForGlobal, unbreaking weak globals with no-name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93336 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
10831083 if (GV->isWeakForLinker()) {
10841084 const char *Prefix = getCOFFSectionPrefixForUniqueGlobal(Kind);
10851085 SmallString<128> Name(Prefix, Prefix+strlen(Prefix));
1086 Mang->getNameWithPrefix(Name, GV->getName());
1086 Mang->getNameWithPrefix(Name, GV, false);
10871087 return getCOFFSection(Name.str(), false, Kind);
10881088 }
10891089