<br><br><div class="gmail_quote">2010/1/22 Garrison Venn <span dir="ltr"><<a href="mailto:gvenn.cfe.dev@gmail.com">gvenn.cfe.dev@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="word-wrap: break-word;">Hi James,<div><br></div><div>Looking at: </div><div class="im"><div><br></div><div>%7 = invoke i8* (...)* bitcast (i32 (%struct._Unwind_Exception*)* @_Unwind_RaiseException to i8* (...)*)(i64* %6)<br>
to label %8 unwind label %.finally_pad ; <i8*> [#uses=0]</div><div><br></div></div><div>I am not sure this is going to work, at least from the way I've played with the system. </div><div>In my examples the _Unwind_RaiseException(...) is called from a frame (function) called via</div>
<div>the invoke instruction, not from a frame that contains the invoke instruction.</div><div><br></div><div>Garrison</div></div></blockquote><div><br>Hi,<br> <br></div><div>Thanks but I've also tried calling both a separate C function that then calls _Unwind_RaiseException and also a C++ function that throws an integer with the same results. I've also just tried running the example code posted earlier by Duncan and I find that doesn't reach the landing pad either if g() is replaced with a C++ function containing "throw 1".<br>
<br>I'm building LLVM from svn head now and I'll retry Dunan's example against that.<br><br>-- James<br><br>BTW: I found the exception handling docs on the wiki very helpful<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="word-wrap: break-word;"><div><br></div><div><div><div><div></div><div class="h5"><div>On Jan 22, 2010, at 6:09, James Williams wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">
<br><br><div class="gmail_quote">2010/1/22 James Williams <span dir="ltr"><<a href="mailto:junk@giantblob.com" target="_blank">junk@giantblob.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div>2010/1/22 Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi James,<div><div></div><div><div><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I get the expected output (after changing i32 @llvm.eh.selector() to i64 llvm.eh.selector.i64())<br>
</blockquote>
<br></div>
in top-of-tree, llvm.eh.selector.i64 has been removed (though bitcode will<br>
autoupgrade) and there is only i32 @llvm.eh.selector(), which is why my example<br>
was written this way.<br></div></div></blockquote><div>OK. I understand.<br><br>Thanks again for the help.<br>-- James<br></div></div></blockquote><div>Sorry. I think I was being very stupid. It looks like I was reading the tables wrong and the eh tables are probably actually correct for all my tests. I didn't realise the personality function went in a separate shared entry. I'm still not sure why it's not getting called by _Unwind_RaiseException but I don't think it's due to any problem with LLVM eh table output<br>
<br>-- James<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Ciao,<br><font color="#888888">
<br>
Duncan.<br>
<br>
</font></blockquote></div><br>
</blockquote></div><br></div></div>
_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></div></div></blockquote></div><br>