Print out a label if we step into the first instruction of a basic block

llvm-svn: 1038
This commit is contained in:
Chris Lattner 2001-10-29 20:44:34 +00:00
parent 490d2a8461
commit 62d1fb6777
1 changed files with 3 additions and 0 deletions

View File

@ -1001,6 +1001,9 @@ void Interpreter::finish() {
//
void Interpreter::printCurrentInstruction() {
if (!ECStack.empty()) {
if (ECStack.back().CurBB->begin() == ECStack.back().CurInst) // print label
WriteAsOperand(cout, ECStack.back().CurBB) << ":\n";
Instruction *I = *ECStack.back().CurInst;
InstNumber *IN = (InstNumber*)I->getAnnotation(SlotNumberAID);
assert(IN && "Instruction has no numbering annotation!");