[LLVMdev] Unable to catch Win64 exceptions that occur in the mcjit(ted) code

Aliaksei Zasenka listhex at gmail.com
Fri Jan 17 04:23:49 PST 2014

Hi all,

In my MSVC-compiled project I am using MCJIT to run some generated code. I
faced that in case of Win64 ('x86_64-pc-win32-elf') __try/__except block
doesn't work - the stack can not be unwound.
I have found that the only way to fix it is implementing my own
*registerEHFrames* function of the Memory Manager (but I'm not sure this

Maybe someone had a success solving the same problem?
What would be the best approach to catch exceptions from dynamically
generated code on Win64?

Thank you in advance

Best regard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140117/0e8e5259/attachment.html>

More information about the llvm-dev mailing list