mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 17:31:33 +00:00
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
This commit is contained in:
parent
08845a242c
commit
f5b2ec19ce
@ -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…
x
Reference in New Issue
Block a user