fix a bug introduced by Nicholas' "unwinds to" stuff: we
authorChris Lattner <sabre@nondot.org>
Mon, 21 Apr 2008 04:20:33 +0000 (04:20 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Apr 2008 04:20:33 +0000 (04:20 +0000)
lost newlines between blocks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50024 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 2eb37db7e686eeb3ea2c662368a0f3d19e2cb947..30682678857c4a04de0cfa2a44714d0b348f6287 100644 (file)
@@ -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;