diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-14 06:18:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-14 06:18:50 +0000 |
commit | b09d2ccc0f23107fc1047694ce266a9cf5e0a3c2 (patch) | |
tree | f272c555ba1224c3f1fcd912608b4b78de34aabc /lib/Target/Sparc | |
parent | 176a4ab639add85be23c39f4247bcdf24f9cda27 (diff) | |
download | external_llvm-b09d2ccc0f23107fc1047694ce266a9cf5e0a3c2.zip external_llvm-b09d2ccc0f23107fc1047694ce266a9cf5e0a3c2.tar.gz external_llvm-b09d2ccc0f23107fc1047694ce266a9cf5e0a3c2.tar.bz2 |
Rename getValueName -> getMangledName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp index 04e1cc8..5ed358c 100644 --- a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp @@ -172,10 +172,7 @@ void SparcAsmPrinter::printOperand(const MachineInstr *MI, int opNum) { printBasicBlockLabel(MO.getMBB()); return; case MachineOperand::MO_GlobalAddress: - { - const GlobalValue *GV = MO.getGlobal(); - O << Mang->getValueName(GV); - } + O << Mang->getMangledName(MO.getGlobal()); break; case MachineOperand::MO_ExternalSymbol: O << MO.getSymbolName(); @@ -251,7 +248,7 @@ void SparcAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { return; O << "\n\n"; - std::string name = Mang->getValueName(GVar); + std::string name = Mang->getMangledName(GVar); Constant *C = GVar->getInitializer(); if (isa<MDNode>(C) || isa<MDString>(C)) return; |