mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Correct character prepended to global symbols ('.'), use Mangler consistently
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15917 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1c514ec89d
commit
ab566eaa68
@ -491,7 +491,7 @@ void Printer::printOp(const MachineOperand &MO,
|
||||
GlobalValue *GV = MO.getGlobal();
|
||||
|
||||
if (Function *F = dyn_cast<Function>(GV)) {
|
||||
O << "." << F->getName();
|
||||
O << Mang->getValueName(F);
|
||||
} else if (GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) {
|
||||
// output the label name
|
||||
O << GVToLabelMap[GVar];
|
||||
@ -666,7 +666,7 @@ bool Printer::doInitialization(Module &M) {
|
||||
O << '\n';
|
||||
}
|
||||
|
||||
Mang = new Mangler(M, "_");
|
||||
Mang = new Mangler(M, ".");
|
||||
return false; // success
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user