<div dir="ltr">I believe what you are looking for is here: <a href="https://github.com/llvm-mirror/libcxxabi/blob/master/src/private_typeinfo.cpp#L363">https://github.com/llvm-mirror/libcxxabi/blob/master/src/private_typeinfo.cpp#L363</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 23, 2016 at 2:43 AM, Zeson Wu via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</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">Hi.<div><br></div><div>Now I face a problem about EH in C++ that there is no equivalent `get_adjusted_ptr ()` function in libcxxabi to compute the thrown object address. You know that if the thrown object is a pointer, you should not return the address of thrown object as usual, but the value of that. So how does libcxxabi do this?</div><div><br></div><div>I have been looking for the same semantic function as `get_adjusted_ptr()` do in libcxxabi, but I have not found that.</div><div><br></div><div>I know that `get_adjusted_ptr()` uses `_is_pointer()` function which is in type_info class to judge whether the object is a pointer, but that function is only in libstdc++. So how can I do to judge and implement the similar functionality like `get_adjusted_ptr()`.</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thanks a lot</div><span class="HOEnZb"><font color="#888888"><div>Zeson</div></font></span></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>