Correct character prepended to global symbols ('.'), use Mangler consistently
llvm-svn: 15917
This commit is contained in:
parent
0010ea3042
commit
714d166c22
|
@ -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