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:
Chris Lattner 2003-11-16 22:59:57 +00:00
parent 3af47228c0
commit 40efcec8e8

View File

@ -748,6 +748,7 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
Out << "<badref>";
}
if (BB != &BB->getParent()->front()) { // Not the entry block?
// Output predecessors for the block...
Out << "\t\t;";
pred_const_iterator PI = pred_begin(BB), PE = pred_end(BB);
@ -762,6 +763,7 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
writeOperand(*PI, false, true);
}
}
}
Out << "\n";