mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Don't print 'No predecessors!' on the entry block
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3af47228c0
commit
40efcec8e8
@ -748,18 +748,20 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
|
|||||||
Out << "<badref>";
|
Out << "<badref>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Output predecessors for the block...
|
if (BB != &BB->getParent()->front()) { // Not the entry block?
|
||||||
Out << "\t\t;";
|
// Output predecessors for the block...
|
||||||
pred_const_iterator PI = pred_begin(BB), PE = pred_end(BB);
|
Out << "\t\t;";
|
||||||
|
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, true);
|
|
||||||
for (++PI; PI != PE; ++PI) {
|
|
||||||
Out << ",";
|
|
||||||
writeOperand(*PI, false, true);
|
writeOperand(*PI, false, true);
|
||||||
|
for (++PI; PI != PE; ++PI) {
|
||||||
|
Out << ",";
|
||||||
|
writeOperand(*PI, false, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user