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 | 67bec133b2e360ac5dd71aa1649444c56a93b5d3 (patch) | |
tree | 508213e09573862000f9db2dc456c950e47fc5b6 /llvm/lib/VMCore/AsmWriter.cpp | |
parent | ad0d42ba15cffd331b5750bde4444d4ba32138a7 (diff) | |
download | bcm5719-llvm-67bec133b2e360ac5dd71aa1649444c56a93b5d3.tar.gz bcm5719-llvm-67bec133b2e360ac5dd71aa1649444c56a93b5d3.zip |
fix a bug introduced by Nicholas' "unwinds to" stuff: we
lost newlines between blocks.
llvm-svn: 50024
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 2eb37db7e68..30682678857 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/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; |