diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 2a6d77652ef..3bdcf88365f 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -831,7 +831,7 @@ void X86ATTAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { EmitAlignment(Align, GVar); O << name << ":"; if (VerboseAsm) { - O << name << "\t\t\t\t" << TAI->getCommentString() << ' '; + O << "\t\t\t\t" << TAI->getCommentString() << ' '; PrintUnmangledNameSafely(GVar, O); } O << '\n'; @@ -894,7 +894,7 @@ void X86ATTAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { EmitAlignment(Align, GVar); O << name << ":"; if (VerboseAsm){ - O << name << "\t\t\t\t" << TAI->getCommentString() << ' '; + O << "\t\t\t\t" << TAI->getCommentString() << ' '; PrintUnmangledNameSafely(GVar, O); } O << '\n'; diff --git a/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp index 2863d6c521c..7823ca6da3d 100644 --- a/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp @@ -491,7 +491,7 @@ bool X86IntelAsmPrinter::doFinalization(Module &M) { O << name << ":"; if (VerboseAsm) - O << name << "\t\t\t\t" << TAI->getCommentString() + O << "\t\t\t\t" << TAI->getCommentString() << " " << I->getName(); O << '\n';