Print out a label if we step into the first instruction of a basic block
llvm-svn: 1038
This commit is contained in:
parent
490d2a8461
commit
62d1fb6777
|
@ -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!");
|
||||
|
|
Loading…
Reference in New Issue