<div dir="ltr">Yep. I'm pretty sure that will work.<div><br></div><div>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.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 31, 2015 at 2:31 PM, Nicolas Ojeda Bar <span dir="ltr"><<a href="mailto:n.oje.bar@gmail.com" target="_blank">n.oje.bar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>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.</div><div><br></div><div>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 ? </div><div><br></div><div>Thanks,<br></div><div><br></div><div>Kind regards</div><span class="HOEnZb"><font color="#888888"><div>Nicolas</div></font></span></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>