summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-17 15:27:30 +0000
committerDan Gohman <gohman@apple.com>2009-08-17 15:27:30 +0000
commitd0cc3f31c03f9f634d2b0974956dc1d11f014435 (patch)
tree642c1dc32c1a6f12dee313bc87de4d214c6f64b3 /llvm/lib
parent8dd69f88ea4538085e21b384967b31daab790653 (diff)
downloadbcm5719-llvm-d0cc3f31c03f9f634d2b0974956dc1d11f014435.tar.gz
bcm5719-llvm-d0cc3f31c03f9f634d2b0974956dc1d11f014435.zip
Always print at least one space before adding a comment.
llvm-svn: 79242
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index 68a45221aca..82358e9b89a 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -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
OpenPOWER on IntegriCloud