use makeNameProper to add the globalprefix instead of doing it manually.

llvm-svn: 75734
This commit is contained in:
Chris Lattner 2009-07-15 03:01:23 +00:00
parent 7d1f9542c2
commit 52d0fec140
1 changed files with 1 additions and 3 deletions

View File

@ -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";