diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-15 03:01:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-15 03:01:23 +0000 |
commit | f813d7d7ef3a39e02e2e3ce5fa5fff08428c2a73 (patch) | |
tree | 4b266885710e29ec2e1e7bb09bdcc86f761bc2e3 | |
parent | 392db3e11d93990e5c8382776b91d73ef40db005 (diff) | |
download | external_llvm-f813d7d7ef3a39e02e2e3ce5fa5fff08428c2a73.zip external_llvm-f813d7d7ef3a39e02e2e3ce5fa5fff08428c2a73.tar.gz external_llvm-f813d7d7ef3a39e02e2e3ce5fa5fff08428c2a73.tar.bz2 |
use makeNameProper to add the globalprefix instead of doing it manually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75734 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 6c84ae8..f9be9a5 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -342,9 +342,7 @@ void X86ATTAsmPrinter::printSymbolOperand(const MachineOperand &MO) { break; } case MachineOperand::MO_ExternalSymbol: { - std::string Name(TAI->getGlobalPrefix()); - Name += MO.getSymbolName(); - + std::string Name = Mang->makeNameProper(MO.getSymbolName()); if (MO.getTargetFlags() == X86II::MO_DARWIN_STUB) { FnStubs[Name+"$stub"] = Name; Name += "$stub"; |