mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Address review comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -960,13 +960,8 @@ void TargetLoweringObjectFileCOFF::getNameWithPrefix(
|
||||
((isa<Function>(GV) && TM.getFunctionSections()) ||
|
||||
(isa<GlobalVariable>(GV) && TM.getDataSections()))) {
|
||||
SmallString<256> Tmp;
|
||||
Mang.getNameWithPrefix(Tmp, GV, /*CannotUsePrivateLabel=*/false);
|
||||
if (Tmp.startswith(".L"))
|
||||
OutName.append(Tmp.begin() + 2, Tmp.end());
|
||||
else if (Tmp.startswith("L"))
|
||||
OutName.append(Tmp.begin() + 1, Tmp.end());
|
||||
else
|
||||
OutName.append(Tmp.begin(), Tmp.end());
|
||||
Mang.getNameWithPrefix(Tmp, GV, CannotUsePrivateLabel, /*ForceNonPrivate=*/true);
|
||||
OutName.append(Tmp.begin(), Tmp.end());
|
||||
return;
|
||||
}
|
||||
Mang.getNameWithPrefix(OutName, GV, CannotUsePrivateLabel);
|
||||
|
Reference in New Issue
Block a user