Don't print global names twice with -asm-verbose.

llvm-svn: 67667
This commit is contained in:
Evan Cheng 2009-03-25 01:08:42 +00:00
parent 7f570d5491
commit 9966403e90
2 changed files with 3 additions and 3 deletions

View File

@ -831,7 +831,7 @@ void X86ATTAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
EmitAlignment(Align, GVar); EmitAlignment(Align, GVar);
O << name << ":"; O << name << ":";
if (VerboseAsm) { if (VerboseAsm) {
O << name << "\t\t\t\t" << TAI->getCommentString() << ' '; O << "\t\t\t\t" << TAI->getCommentString() << ' ';
PrintUnmangledNameSafely(GVar, O); PrintUnmangledNameSafely(GVar, O);
} }
O << '\n'; O << '\n';
@ -894,7 +894,7 @@ void X86ATTAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
EmitAlignment(Align, GVar); EmitAlignment(Align, GVar);
O << name << ":"; O << name << ":";
if (VerboseAsm){ if (VerboseAsm){
O << name << "\t\t\t\t" << TAI->getCommentString() << ' '; O << "\t\t\t\t" << TAI->getCommentString() << ' ';
PrintUnmangledNameSafely(GVar, O); PrintUnmangledNameSafely(GVar, O);
} }
O << '\n'; O << '\n';

View File

@ -491,7 +491,7 @@ bool X86IntelAsmPrinter::doFinalization(Module &M) {
O << name << ":"; O << name << ":";
if (VerboseAsm) if (VerboseAsm)
O << name << "\t\t\t\t" << TAI->getCommentString() O << "\t\t\t\t" << TAI->getCommentString()
<< " " << I->getName(); << " " << I->getName();
O << '\n'; O << '\n';