aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-29 20:44:34 +0000
committerChris Lattner <sabre@nondot.org>2001-10-29 20:44:34 +0000
commitf5b2ec19cec3203288f51eb4f5fdbbddbe080d66 (patch)
tree9d85edb6b145f532c7bba27c6228d068bce98c38 /lib/ExecutionEngine/Interpreter/Execution.cpp
parent08845a242c574d695566cbc61e46da1c86c810ac (diff)
Print out a label if we step into the first instruction of a basic block
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 52d7e86dca..a3d8d3f0c7 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/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!");