Use the GV version of getNameWithPrefix in TargetLoweringObjectFileCOFF::

SelectSectionForGlobal, unbreaking weak globals with no-name.

llvm-svn: 93336
This commit is contained in:
Chris Lattner 2010-01-13 19:19:17 +00:00
parent af0ad65ff2
commit 643b817d92
1 changed files with 1 additions and 1 deletions

View File

@ -1084,7 +1084,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
if (GV->isWeakForLinker()) {
const char *Prefix = getCOFFSectionPrefixForUniqueGlobal(Kind);
SmallString<128> Name(Prefix, Prefix+strlen(Prefix));
Mang->getNameWithPrefix(Name, GV->getName());
Mang->getNameWithPrefix(Name, GV, false);
return getCOFFSection(Name.str(), false, Kind);
}