From 7db860d4de34cab6a738ff240b2810ffb4379378 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 25 Mar 2009 01:08:42 +0000 Subject: [PATCH] Don't print global names twice with -asm-verbose. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67667 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 4 ++-- lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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';