[llvm-commits] [llvm] r75481 - /llvm/trunk/lib/VMCore/AsmWriter.cpp
Dan Gohman
gohman at apple.com
Mon Jul 13 11:28:00 PDT 2009
Author: djg
Date: Mon Jul 13 13:27:59 2009
New Revision: 75481
URL: http://llvm.org/viewvc/llvm-project?rev=75481&view=rev
Log:
Change printInstruction to not print a trailing newline. Value::dump
always adds a newline, so this fixes Value::dump printing an
extra blank line.
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=75481&r1=75480&r2=75481&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Mon Jul 13 13:27:59 2009
@@ -1620,8 +1620,10 @@
if (AnnotationWriter) AnnotationWriter->emitBasicBlockStartAnnot(BB, Out);
// Output all of the instructions in the basic block...
- for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I != E; ++I)
+ for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I != E; ++I) {
printInstruction(*I);
+ Out << '\n';
+ }
if (AnnotationWriter) AnnotationWriter->emitBasicBlockEndAnnot(BB, Out);
}
@@ -1903,7 +1905,6 @@
}
printInfoComment(I);
- Out << '\n';
}
More information about the llvm-commits
mailing list