[llvm-commits] [llvm] r78834 - in /llvm/trunk/lib/Target/X86/AsmPrinter: X86ATTAsmPrinter.cpp X86IntelAsmPrinter.cpp
Dan Gohman
gohman at apple.com
Wed Aug 12 11:55:33 PDT 2009
Author: djg
Date: Wed Aug 12 13:55:32 2009
New Revision: 78834
URL: http://llvm.org/viewvc/llvm-project?rev=78834&view=rev
Log:
Use PadToColumn instead of tabs.
Modified:
llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
llvm/trunk/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp?rev=78834&r1=78833&r2=78834&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Wed Aug 12 13:55:32 2009
@@ -816,7 +816,8 @@
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 @@
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 @@
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';
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp?rev=78834&r1=78833&r2=78834&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp Wed Aug 12 13:55:32 2009
@@ -524,7 +524,8 @@
O << name << ":";
if (VerboseAsm)
- O << "\t\t\t\t" << TAI->getCommentString()
+ O.PadToColumn(TAI->getCommentColumn(), 1);
+ O << TAI->getCommentString()
<< " " << GV->getName();
O << '\n';
More information about the llvm-commits
mailing list