Change the indentation for LLVM Assembly files from 1 tab to 2 spaces.
authorDan Gohman <gohman@apple.com>
Thu, 13 Aug 2009 01:41:52 +0000 (01:41 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 13 Aug 2009 01:41:52 +0000 (01:41 +0000)
This is vaguely consistent with LLVM's own source code, but more
importantly it lets more lines stay within 80 columns.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78879 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index c20cf46f92c88ebd520768daade6b09c7da29ac0..5cd039e979ce659db4c206ba9c568071d4d9437b 100644 (file)
@@ -1729,7 +1729,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
   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 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
     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 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
     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);