[LLVMdev] LLVM: to catch 'unwind' instruction from calling C++ code

Duncan Sands baldrick at free.fr
Mon Nov 7 01:10:53 PST 2011


Hi Semion, the unwind instruction has been removed from LLVM.  Also, the JIT
and code generators never supported it: it never unwound the stack, it just
resulted in a nasty crash.

Ciao, Duncan.

> I have a little problem using LLVM and will be happy to get a solution. I need
> to handle in C++ code an uncaught unwind instruction while calling JIT (now I
> get segfault). I mean something like nonexistent ExecutionEngine::invokeFunction
> instead of callFunction. Setting llvm::JITExceptionHandling to true
> and enclosing the JIT-call within try/catch block does not help here, because
> there is no C++ style exception thrown, but a simple unwind instruction. Thanks
> in advance.
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list