eliminate some uses of Mangler::makeNameProper.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-01-13 07:56:59 +00:00
parent b74978f8e5
commit ee9250bb4f
3 changed files with 23 additions and 14 deletions

View File

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