[llvm-commits] [llvm] r75734 - /llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Tue Jul 14 20:01:23 PDT 2009
Author: lattner
Date: Tue Jul 14 22:01:23 2009
New Revision: 75734
URL: http://llvm.org/viewvc/llvm-project?rev=75734&view=rev
Log:
use makeNameProper to add the globalprefix instead of doing it manually.
Modified:
llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp?rev=75734&r1=75733&r2=75734&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Tue Jul 14 22:01:23 2009
@@ -342,9 +342,7 @@
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";
More information about the llvm-commits
mailing list