diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-21 04:20:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-21 04:20:33 +0000 |
commit | 96c5b2f8c75b10f7e61ad90582d72c500d5c7d2d (patch) | |
tree | 1a511a6d0b1195875160ad4f9752eb76ea037641 /lib/VMCore/AsmWriter.cpp | |
parent | 281def945608e177e7ca8bcaf142b58a06e0892d (diff) | |
download | external_llvm-96c5b2f8c75b10f7e61ad90582d72c500d5c7d2d.zip external_llvm-96c5b2f8c75b10f7e61ad90582d72c500d5c7d2d.tar.gz external_llvm-96c5b2f8c75b10f7e61ad90582d72c500d5c7d2d.tar.bz2 |
fix a bug introduced by Nicholas' "unwinds to" stuff: we
lost newlines between blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 2eb37db..3068267 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1164,7 +1164,7 @@ void AssemblyWriter::printArgument(const Argument *Arg, /// void AssemblyWriter::printBasicBlock(const BasicBlock *BB) { if (BB->hasName()) // Print out the label if it exists... - Out << getLLVMName(BB->getName(), LabelPrefix) << ':'; + Out << '\n' << getLLVMName(BB->getName(), LabelPrefix) << ':'; if (const BasicBlock* unwindDest = BB->getUnwindDest()) { if (BB->hasName()) @@ -1175,7 +1175,7 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) { } if (!BB->hasName() && !BB->use_empty()) { // Don't print block # of no uses... - Out << "; <label>:"; + Out << "\n; <label>:"; int Slot = Machine.getLocalSlot(BB); if (Slot != -1) Out << Slot; |