Correct character prepended to global symbols ('.'), use Mangler consistently

llvm-svn: 15917
This commit is contained in:
Misha Brukman 2004-08-19 16:33:56 +00:00
parent 0010ea3042
commit 714d166c22
1 changed files with 2 additions and 2 deletions

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
}