diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-02-06 21:16:41 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-02-06 21:16:41 +0000 |
commit | d5d95b0b510a1cf6b4b72b444649178113bd05bd (patch) | |
tree | bda4a63191623f1cc7339aa065478215398764e7 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | a2791f8aeb2ea2b439c7a8cbb4bd2fe781f21c34 (diff) | |
download | llvm-d5d95b0b510a1cf6b4b72b444649178113bd05bd.zip llvm-d5d95b0b510a1cf6b4b72b444649178113bd05bd.tar.gz llvm-d5d95b0b510a1cf6b4b72b444649178113bd05bd.tar.bz2 |
[unwind removal] We no longer have 'unwind' instructions being generated, so
remove the code that handles them.
llvm-svn: 149901
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 1af40dd..ac4c49f 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -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!"); } |