Always print at least one space before adding a comment.
authorDan Gohman <gohman@apple.com>
Mon, 17 Aug 2009 15:27:30 +0000 (15:27 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 17 Aug 2009 15:27:30 +0000 (15:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79242 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 68a45221acacdb71fc6e932a1dab4f40f7931228..82358e9b89abed7aef0c164cc18a441968e11aac 100644 (file)
@@ -1690,11 +1690,11 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
   }
 
   if (BB->getParent() == 0) {
-    Out.PadToColumn(50);
+    Out.PadToColumn(50, 1);
     Out << "; Error: Block without parent!";
   } else if (BB != &BB->getParent()->getEntryBlock()) {  // Not the entry block?
     // Output predecessors for the block...
-    Out.PadToColumn(50);
+    Out.PadToColumn(50, 1);
     Out << ";";
     pred_const_iterator PI = pred_begin(BB), PE = pred_end(BB);
     
@@ -1729,7 +1729,7 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
 ///
 void AssemblyWriter::printInfoComment(const Value &V) {
   if (V.getType() != Type::getVoidTy(V.getContext())) {
-    Out.PadToColumn(50);
+    Out.PadToColumn(50, 1);
     Out << "; <";
     TypePrinter.print(V.getType(), Out);
     Out << "> [#uses=" << V.getNumUses() << ']';  // Output # uses