1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

fix a bug introduced by Nicholas' "unwinds to" stuff: we

lost newlines between blocks.

llvm-svn: 50024
This commit is contained in:
Chris Lattner 2008-04-21 04:20:33 +00:00
parent ca82082080
commit 26468c09af

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;