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:
Misha Brukman 2004-08-19 16:33:56 +00:00
parent 1c514ec89d
commit ab566eaa68

View File

@ -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
}