<div dir="ltr">btw, you might prefer to use -Xclang instead of using -cc1 directly, e.g,<div><br></div><div><span style="font-size:13px">clang++ -Xclang -fdump-record-layouts vtable.cpp</span><br style="font-size:13px"></div><div><span style="font-size:13px"><br></span></div><div>This way, you don't need to worry about passing additional parameters to -cc1, and you get nice colors if you have a color terminal.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 14, 2015 at 5:24 PM, don hinton <span dir="ltr"><<a href="mailto:hintonda@gmail.com" target="_blank">hintonda@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">As per Reid's early response, try adding -emit-llvm-only or -emit-obj.<div><br></div><div><a href="http://clang-developers.42468.n3.nabble.com/Clang-3-4-fdump-record-layouts-not-producing-any-results-td4036285.html" target="_blank">http://clang-developers.42468.n3.nabble.com/Clang-3-4-fdump-record-layouts-not-producing-any-results-td4036285.html</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Sep 14, 2015 at 1:27 PM, Yi-Hong Lyu via cfe-users <span dir="ltr"><<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello all,<br><br>I would like to dump the vtable's or record's layout therefore I download the binary of Clang 3.7 for Linux from official site. But I got nothing with:<br><br>$ clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang++ -cc1 -fdump-vtable-layouts vtable.cpp<br><br>or<br><br>$ clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang++ -cc1 -fdump-record-layouts vtable.cpp<br><br>I am wondering how to dump vtable's or record's layout? Is there anything wrong with my instructions? <br><br>Thanks,<br>Yi-Hong<br></div>
<br></div></div>_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>