remove some random indentation stuff, yay for efficiency.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79797 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 211f708..d2afe1e 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1774,19 +1774,6 @@
   }
 }
 
-/// Indent - Insert spaces into the character output stream.  The
-/// "level" is multiplied by the "scale" to calculate the number of
-/// spaces to insert.  "level" can represent something like loop
-/// nesting level, for example.
-///
-static formatted_raw_ostream &
-Indent(formatted_raw_ostream &out, int level, int scale = 2) {
-  for(int i = 0; i < level*scale; ++i) {
-    out << " ";
-  }
-  return out;
-}
-
 /// PrintChildLoopComment - Print comments about child loops within
 /// the loop for this basic block, with nesting.
 ///
@@ -1806,7 +1793,7 @@
     O.PadToColumn(MAI->getCommentColumn());
 
     O << MAI->getCommentString();
-    Indent(O, (*cl)->getLoopDepth()-1)
+    O.indent(((*cl)->getLoopDepth()-1)*2)
       << " Child Loop BB" << FunctionNumber << "_"
       << Header->getNumber() << " Depth " << (*cl)->getLoopDepth();
 
@@ -1858,7 +1845,7 @@
         O << '\n';
         O.PadToColumn(MAI->getCommentColumn());
         O << MAI->getCommentString();
-        Indent(O, CurLoop->getLoopDepth()-1)
+        O.indent((CurLoop->getLoopDepth()-1)*2)
           << " Inside Loop BB" << getFunctionNumber() << "_"
           << Header->getNumber() << " Depth " << CurLoop->getLoopDepth();
       }