forked from OSchip/llvm-project
use makeNameProper to add the globalprefix instead of doing it manually.
llvm-svn: 75734
This commit is contained in:
parent
7d1f9542c2
commit
52d0fec140
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue