<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I strongly advise you not to use SjLj exception handling. Use zero-cost-exceptions via DWARF instead.<div><br></div><div>If you really want to pursue sjlj anyway, look at the ARM backend. It uses them for darwin targets.</div><div><br></div><div>-Jim</div><div><br><div><div>On Jul 12, 2013, at 9:09 AM, Nicolas Ojeda Bar <<a href="mailto:N.Ojeda.Bar@dpmms.cam.ac.uk">N.Ojeda.Bar@dpmms.cam.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Dear list,<br><br>I want to add SJLJ exception handling to my frontend. Unfortunately,<br>there doesn't seem to be any examples in the documentation as to how<br>to use the intrinsics<br><br>@llvm.eh.sjlj.setjmp<br>@llvm.eh.sjlj.longjmp<br>@llvm.eh.sjlj.lsda<br>@llvm.eh.sjlj.callsite<br><br>Is there a way to force Clang to use SJLJ exception handling for C++? That<br>way I would be able to look at its output to learn how to use them correctly.<br><br>Otherwise, how should I go about finding out how to implement SJLJ exception<br>handling in my frontend?<br><br>Thanks!<br>Nicolas<br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span>        <a href="http://llvm.cs.uiuc.edu/">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></div></blockquote></div><br></div></body></html>