From a6340628c2c1a271f7074836a7484ad2d90dd62e Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 12 Aug 2009 18:55:32 +0000 Subject: [PATCH] Use PadToColumn instead of tabs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78834 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 9 ++++++--- lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 860d5005672..c61afe3fc71 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -816,7 +816,8 @@ void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) { EmitAlignment(Align, GVar); O << name << ":"; if (VerboseAsm) { - O << "\t\t\t\t" << TAI->getCommentString() << ' '; + O.PadToColumn(TAI->getCommentColumn(), 1); + O << TAI->getCommentString() << ' '; PrintUnmangledNameSafely(GVar, O); } O << '\n'; @@ -837,7 +838,8 @@ void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) { O << ',' << (TAI->getAlignmentIsInBytes() ? (1 << Align) : Align); } if (VerboseAsm) { - O << "\t\t" << TAI->getCommentString() << ' '; + O.PadToColumn(TAI->getCommentColumn(), 1); + O << TAI->getCommentString() << ' '; PrintUnmangledNameSafely(GVar, O); } O << '\n'; @@ -880,7 +882,8 @@ void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) { EmitAlignment(Align, GVar); O << name << ":"; if (VerboseAsm){ - O << "\t\t\t\t" << TAI->getCommentString() << ' '; + O.PadToColumn(TAI->getCommentColumn(), 1); + O << TAI->getCommentString() << ' '; PrintUnmangledNameSafely(GVar, O); } O << '\n'; diff --git a/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp index 153f41abf07..8b4ca58fb25 100644 --- a/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp @@ -524,7 +524,8 @@ void X86IntelAsmPrinter::PrintGlobalVariable(const GlobalVariable *GV) { O << name << ":"; if (VerboseAsm) - O << "\t\t\t\t" << TAI->getCommentString() + O.PadToColumn(TAI->getCommentColumn(), 1); + O << TAI->getCommentString() << " " << GV->getName(); O << '\n';