diff --git a/lib/Target/PowerPC/PPC64AsmPrinter.cpp b/lib/Target/PowerPC/PPC64AsmPrinter.cpp index 0e694ea47eb..37a1d070bf2 100644 --- a/lib/Target/PowerPC/PPC64AsmPrinter.cpp +++ b/lib/Target/PowerPC/PPC64AsmPrinter.cpp @@ -491,7 +491,7 @@ void Printer::printOp(const MachineOperand &MO, GlobalValue *GV = MO.getGlobal(); if (Function *F = dyn_cast(GV)) { - O << "." << F->getName(); + O << Mang->getValueName(F); } else if (GlobalVariable *GVar = dyn_cast(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 }