[llvm-commits] [llvm] r78879 - /llvm/trunk/lib/VMCore/AsmWriter.cpp
Dan Gohman
gohman at apple.com
Wed Aug 12 18:41:53 PDT 2009
Author: djg
Date: Wed Aug 12 20:41:52 2009
New Revision: 78879
URL: http://llvm.org/viewvc/llvm-project?rev=78879&view=rev
Log:
Change the indentation for LLVM Assembly files from 1 tab to 2 spaces.
This is vaguely consistent with LLVM's own source code, but more
importantly it lets more lines stay within 80 columns.
Modified:
llvm/trunk/lib/VMCore/AsmWriter.cpp
Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=78879&r1=78878&r2=78879&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Wed Aug 12 20:41:52 2009
@@ -1729,7 +1729,7 @@
if (AnnotationWriter) AnnotationWriter->emitInstructionAnnot(&I, Out);
// Print out indentation for an instruction.
- Out << '\t';
+ Out << " ";
// Print out name if it exists...
if (I.hasName()) {
@@ -1785,12 +1785,12 @@
Out << " [";
for (unsigned op = 2, Eop = I.getNumOperands(); op < Eop; op += 2) {
- Out << "\n\t\t";
+ Out << "\n ";
writeOperand(I.getOperand(op ), true);
Out << ", ";
writeOperand(I.getOperand(op+1), true);
}
- Out << "\n\t]";
+ Out << "\n ]";
} else if (isa<PHINode>(I)) {
Out << ' ';
TypePrinter.print(I.getType(), Out);
@@ -1907,7 +1907,7 @@
if (PAL.getFnAttributes() != Attribute::None)
Out << ' ' << Attribute::getAsString(PAL.getFnAttributes());
- Out << "\n\t\t\tto ";
+ Out << "\n to ";
writeOperand(II->getNormalDest(), true);
Out << " unwind ";
writeOperand(II->getUnwindDest(), true);
More information about the llvm-commits
mailing list