diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-29 20:44:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-29 20:44:34 +0000 |
commit | 62d1fb67771985e6b2036875a65a392dec248ab5 (patch) | |
tree | 64c7a8734901facbb743b8e0fa84c23720d41346 /llvm/lib/ExecutionEngine/Interpreter | |
parent | 490d2a84616718b954c73f60eba93ad1304eba62 (diff) | |
download | bcm5719-llvm-62d1fb67771985e6b2036875a65a392dec248ab5.tar.gz bcm5719-llvm-62d1fb67771985e6b2036875a65a392dec248ab5.zip |
Print out a label if we step into the first instruction of a basic block
llvm-svn: 1038
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 52d7e86dca0..a3d8d3f0c7a 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -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!"); |