[llvm-dev] JIT - Exception Handling under Windows

via llvm-dev llvm-dev at lists.llvm.org
Tue May 30 01:38:28 PDT 2017


Hello friendly Clang-World,

working with the JIT is real great and I'm learning great things. But one 
thing I couldn't get along with. I created an object-file, with a simple 
exception-handling. One functions throws an integer and another catches 
the exception. When I try to run the code, the application crashes. I 
noticed, that the reference "??_7type_info@@6B@" couldn't be resolved. 
Some research later, I discovered, that this value is the 
"type_info::vftable". But passing a fake-virtual-table to the reference 
didn't lead to a function being called. Later I found this article: 
https://groups.google.com/forum/#!topic/llvm-dev/Fd-ggDDWwRg

But using the msvcrt.lib didn't help me too, because there were other 
undefined references and the application continued crashing. So - what can 
I do? Loading every *.lib Windows is providing? Or is there a simpler 
solution? Couldn't I just change the exception type, when clang compiles 
my cpp-Files?

Kind regards
Björn
Als GmbH eingetragen im Handelsregister Bad Homburg v.d.H. HRB 9816, 
USt.ID-Nr. DE 114 165 789
Geschäftsführer: Hiroshi Kawamura, Dr Hiroshi Nakamura, Markus Bode, Heiko 
Lampert, Takashi Nagano, Takeshi Fukushima.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170530/04b6d8a7/attachment.html>


More information about the llvm-dev mailing list