the MinPad argument to PadToColumn only really makes sense to be 1,
[oota-llvm.git] / lib / Support / FormattedStream.cpp
index 0db21f651a7e4062ace49af81ae9ee6aec6db11d..0c787f8c4f90c508305d9950c20ebb0eabb401cb 100644 (file)
@@ -51,21 +51,20 @@ void formatted_raw_ostream::ComputeColumn() {
 /// \param MinPad - The minimum space to give after the most recent
 /// I/O, even if the current column + minpad > newcol.
 ///
-void formatted_raw_ostream::PadToColumn(unsigned NewCol, unsigned MinPad) { 
+void formatted_raw_ostream::PadToColumn(unsigned NewCol) { 
   // Figure out what's in the buffer and add it to the column count.
   ComputeColumn();
 
   // Output spaces until we reach the desired column.
   unsigned num = NewCol - ColumnScanned;
-  if (NewCol < ColumnScanned || num < MinPad)
-    num = MinPad;
+  if (NewCol < ColumnScanned || num < 1)
+    num = 1;
 
   // Keep a buffer of spaces handy to speed up processing.
   const char *Spaces = "                                                      "
     "                                                                         ";
 
   assert(num < MAX_COLUMN_PAD && "Unexpectedly large column padding");
-
   write(Spaces, num);
 }