mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
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
This commit is contained in:
parent
eb18812f75
commit
cab16cc9a3
@ -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