<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi James,<div><br></div><div>Looking at: </div><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>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><br></div><div><div><div>On Jan 22, 2010, at 6:09, James Williams wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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>
_______________________________________________<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">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><br></blockquote></div><br></div></body></html>