From ab566eaa682484fa94f58ff784d0360ecda031af Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Thu, 19 Aug 2004 16:33:56 +0000 Subject: [PATCH] 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 --- lib/Target/PowerPC/PPC64AsmPrinter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }