mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-12 01:25:10 +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!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user