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
This commit is contained in:
Chris Lattner 2008-04-21 04:20:33 +00:00
parent 281def9456
commit 96c5b2f8c7

View 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;