mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
[unwind removal] We no longer have 'unwind' instructions being generated, so
remove the code that handles them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -625,24 +625,6 @@ void Interpreter::visitReturnInst(ReturnInst &I) {
|
||||
popStackAndReturnValueToCaller(RetTy, Result);
|
||||
}
|
||||
|
||||
void Interpreter::visitUnwindInst(UnwindInst &I) {
|
||||
// Unwind stack
|
||||
Instruction *Inst;
|
||||
do {
|
||||
ECStack.pop_back();
|
||||
if (ECStack.empty())
|
||||
report_fatal_error("Empty stack during unwind!");
|
||||
Inst = ECStack.back().Caller.getInstruction();
|
||||
} while (!(Inst && isa<InvokeInst>(Inst)));
|
||||
|
||||
// Return from invoke
|
||||
ExecutionContext &InvokingSF = ECStack.back();
|
||||
InvokingSF.Caller = CallSite();
|
||||
|
||||
// Go to exceptional destination BB of invoke instruction
|
||||
SwitchToNewBasicBlock(cast<InvokeInst>(Inst)->getUnwindDest(), InvokingSF);
|
||||
}
|
||||
|
||||
void Interpreter::visitUnreachableInst(UnreachableInst &I) {
|
||||
report_fatal_error("Program executed an 'unreachable' instruction!");
|
||||
}
|
||||
|
@ -171,7 +171,6 @@ public:
|
||||
void visitCallSite(CallSite CS);
|
||||
void visitCallInst(CallInst &I) { visitCallSite (CallSite (&I)); }
|
||||
void visitInvokeInst(InvokeInst &I) { visitCallSite (CallSite (&I)); }
|
||||
void visitUnwindInst(UnwindInst &I);
|
||||
void visitUnreachableInst(UnreachableInst &I);
|
||||
|
||||
void visitShl(BinaryOperator &I);
|
||||
|
Reference in New Issue
Block a user