mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-05 19:29:54 +00:00
more fallout from Nicholas' asmprinter patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50078 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
61a9213440
commit
eb411291fa
@ -1185,28 +1185,24 @@ 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);
|
|
||||||
|
if (PI == PE) {
|
||||||
if (PI == PE) {
|
Out << " No predecessors!";
|
||||||
Out << " No predecessors!";
|
} else {
|
||||||
} else {
|
Out << " preds =";
|
||||||
Out << " preds =";
|
writeOperand(*PI, false);
|
||||||
|
for (++PI; PI != PE; ++PI) {
|
||||||
|
Out << ',';
|
||||||
writeOperand(*PI, false);
|
writeOperand(*PI, false);
|
||||||
for (++PI; PI != PE; ++PI) {
|
|
||||||
Out << ',';
|
|
||||||
writeOperand(*PI, false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BB->hasName() || !BB->use_empty() || BB->getUnwindDest() ||
|
Out << "\n";
|
||||||
BB != &BB->getParent()->getEntryBlock())
|
|
||||||
Out << "\n";
|
|
||||||
|
|
||||||
if (AnnotationWriter) AnnotationWriter->emitBasicBlockStartAnnot(BB, Out);
|
if (AnnotationWriter) AnnotationWriter->emitBasicBlockStartAnnot(BB, Out);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user