[LLVMdev] Throwing C++ exception through LLVM JITed code
Renato Golin
rengolin at systemcall.org
Tue Oct 26 16:18:13 PDT 2010
On 26 October 2010 23:43, Chris <chris at k1w1.org> wrote:
> I suspect this is not going to be possible unless somehow GCC and LLVM used
> the same stack structure so that the exception handling code could unwind
> the stack through the JITed code.
That's pretty much it.
The execution engine seems to support stack unwinding:
http://old.nabble.com/C%2B%2B-Exception-Handling-Problem-td22427938.html
You just need to turn exception handling on in the JITed code.
--
cheers,
--renato
http://systemcall.org/
Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm
More information about the llvm-dev
mailing list