diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-08-19 16:33:56 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-08-19 16:33:56 +0000 |
commit | ab566eaa682484fa94f58ff784d0360ecda031af (patch) | |
tree | 612bd6c69cbf2f7b48947f52940d579a65008c15 /lib | |
parent | 1c514ec89dc1fe01adf591584755d0c3ff622361 (diff) | |
download | external_llvm-ab566eaa682484fa94f58ff784d0360ecda031af.zip external_llvm-ab566eaa682484fa94f58ff784d0360ecda031af.tar.gz external_llvm-ab566eaa682484fa94f58ff784d0360ecda031af.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/PowerPC/PPC64AsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPC64AsmPrinter.cpp b/lib/Target/PowerPC/PPC64AsmPrinter.cpp index 0e694ea..37a1d07 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<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 } |