diff options
| author | Dan Gohman <gohman@apple.com> | 2009-07-13 18:27:59 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-07-13 18:27:59 +0000 |
| commit | a4f709ee5aa1575d791a58cde47a36103b442817 (patch) | |
| tree | 84a7448093e3ab5362f16c8dbeff9f42bfd2a988 /llvm/lib | |
| parent | b3c1afc14bebe048012cbe9b35401502cdab1c15 (diff) | |
| download | bcm5719-llvm-a4f709ee5aa1575d791a58cde47a36103b442817.tar.gz bcm5719-llvm-a4f709ee5aa1575d791a58cde47a36103b442817.zip | |
Change printInstruction to not print a trailing newline. Value::dump
always adds a newline, so this fixes Value::dump printing an
extra blank line.
llvm-svn: 75481
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 959da81b0d8..a49c09a1db1 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -1620,8 +1620,10 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) { 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 @@ void AssemblyWriter::printInstruction(const Instruction &I) { } printInfoComment(I); - Out << '\n'; } |

