1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

more fallout from Nicholas' asmprinter patch.

llvm-svn: 50078
This commit is contained in:
Chris Lattner 2008-04-22 02:45:44 +00:00
parent 93b5be1824
commit 188b560336

View File

@ -1185,8 +1185,7 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
if (BB->getParent() == 0) if (BB->getParent() == 0)
Out << "\t\t; Error: Block without parent!"; Out << "\t\t; Error: Block without parent!";
else { else if (BB != &BB->getParent()->getEntryBlock()) { // Not the entry block?
if (BB != &BB->getParent()->getEntryBlock()) { // Not the entry block?
// Output predecessors for the block... // Output predecessors for the block...
Out << "\t\t;"; Out << "\t\t;";
pred_const_iterator PI = pred_begin(BB), PE = pred_end(BB); pred_const_iterator PI = pred_begin(BB), PE = pred_end(BB);
@ -1202,10 +1201,7 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
} }
} }
} }
}
if (BB->hasName() || !BB->use_empty() || BB->getUnwindDest() ||
BB != &BB->getParent()->getEntryBlock())
Out << "\n"; Out << "\n";
if (AnnotationWriter) AnnotationWriter->emitBasicBlockStartAnnot(BB, Out); if (AnnotationWriter) AnnotationWriter->emitBasicBlockStartAnnot(BB, Out);