mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Use the GV version of getNameWithPrefix in TargetLoweringObjectFileCOFF::
SelectSectionForGlobal, unbreaking weak globals with no-name. llvm-svn: 93336
This commit is contained in:
parent
0fa1e2d063
commit
b255aee77a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user