fix a bug introduced by Nicholas' "unwinds to" stuff: we
lost newlines between blocks. llvm-svn: 50024
This commit is contained in:
parent
ad0d42ba15
commit
67bec133b2
|
@ -1164,7 +1164,7 @@ void AssemblyWriter::printArgument(const Argument *Arg,
|
||||||
///
|
///
|
||||||
void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
|
void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
|
||||||
if (BB->hasName()) // Print out the label if it exists...
|
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 (const BasicBlock* unwindDest = BB->getUnwindDest()) {
|
||||||
if (BB->hasName())
|
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...
|
if (!BB->hasName() && !BB->use_empty()) { // Don't print block # of no uses...
|
||||||
Out << "; <label>:";
|
Out << "\n; <label>:";
|
||||||
int Slot = Machine.getLocalSlot(BB);
|
int Slot = Machine.getLocalSlot(BB);
|
||||||
if (Slot != -1)
|
if (Slot != -1)
|
||||||
Out << Slot;
|
Out << Slot;
|
||||||
|
|
Loading…
Reference in New Issue