[LLVMdev] exception handling and fastcc
rnk at google.com
Mon Aug 3 10:51:03 PDT 2015
Yep. I'm pretty sure that will work.
If your exception handling scheme can be described as a class hierarchy,
then yes, you can build your own Itanium C++ RTTI tables and pass it to
__cxa_throw. If the mapping is too hard, you will have to implement your
own EH personality to use in place of __gxx_personality_v0.
On Fri, Jul 31, 2015 at 2:31 PM, Nicolas Ojeda Bar <n.oje.bar at gmail.com>
> I am writing a compiler for a functional language and am using the fastcc
> calling convention extensibly. I am now thinking about how to implement
> exception handling (about which I know close to nothing) and was hoping to
> use the support for exception handling built-in llvm.
> Question: can I use the standard __cxa_throw (and personality function)
> from C++ and the llvm eh machinery even if I am using fastcc instead of the
> standard calling convention ?
> Kind regards
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev