From: Brian Gaeke Date: Fri, 7 Nov 2003 20:07:06 +0000 (+0000) Subject: Add stub version of unwind support X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9bf06b155c3e158ac405d2df0f1b9c9c5b387311;p=oota-llvm.git Add stub version of unwind support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9789 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index e04f5642d06..c5facde8793 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -475,6 +475,10 @@ void Interpreter::visitReturnInst(ReturnInst &I) { popStackAndReturnValueToCaller(RetTy, Result); } +void Interpreter::visitUnwindInst(UnwindInst &I) { + abort (); +} + void Interpreter::visitBranchInst(BranchInst &I) { ExecutionContext &SF = ECStack.back(); BasicBlock *Dest; diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h index 974aea89647..04baf367747 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -125,6 +125,7 @@ public: void visitCallSite(CallSite CS); void visitCallInst(CallInst &I) { visitCallSite (CallSite (&I)); } void visitInvokeInst(InvokeInst &I) { visitCallSite (CallSite (&I)); } + void visitUnwindInst(UnwindInst &I); void visitShl(ShiftInst &I); void visitShr(ShiftInst &I);