[llvm-commits] [llvm] r79242 - /llvm/trunk/lib/VMCore/AsmWriter.cpp
Dan Gohman
gohman at apple.com
Mon Aug 17 08:27:30 PDT 2009
Author: djg
Date: Mon Aug 17 10:27:30 2009
New Revision: 79242
URL: http://llvm.org/viewvc/llvm-project?rev=79242&view=rev
Log:
Always print at least one space before adding a comment.
Modified:
llvm/trunk/lib/VMCore/AsmWriter.cpp
Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=79242&r1=79241&r2=79242&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Mon Aug 17 10:27:30 2009
@@ -1690,11 +1690,11 @@
}
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::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
More information about the llvm-commits
mailing list