projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
08845a2
)
Print out a label if we step into the first instruction of a basic block
author
Chris Lattner
<sabre@nondot.org>
Mon, 29 Oct 2001 20:44:34 +0000
(20:44 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 29 Oct 2001 20:44:34 +0000
(20:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1038
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/Interpreter/Execution.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/Interpreter/Execution.cpp
b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 52d7e86dca0c77fa82c8f0d6bd04032aef2f60ad..a3d8d3f0c7a22bccf88f5a93fddd763913300dfb 100644
(file)
--- 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!");