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 | 3b3e67c3be2a6d4894266b34f85265423ef7c492 (patch) | |
tree | 32fafbb6145aa21d27f6f48497d7d4bedaed29e6 /lib | |
parent | dfae3b3cf947e781c34ed2401e538c85da90771c (diff) | |
download | external_llvm-3b3e67c3be2a6d4894266b34f85265423ef7c492.zip external_llvm-3b3e67c3be2a6d4894266b34f85265423ef7c492.tar.gz external_llvm-3b3e67c3be2a6d4894266b34f85265423ef7c492.tar.bz2 |
Change printInstruction to not print a trailing newline. Value::dump
always adds a newline, so this fixes Value::dump printing an
extra blank line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 959da81..a49c09a 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/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'; } |