[cfe-dev] Clang++ 3.4 -fdump-record-layouts not producing any results?

David Majnemer david.majnemer at gmail.com
Mon Nov 25 14:04:22 PST 2013


You need to get it to generate some IR, try the following:
$ clang -cc1 -x c++ -v -fdump-record-layouts test.cc -emit-llvm -o /dev/null


On Mon, Nov 25, 2013 at 4:44 PM, Dun Peal <dunpealer at gmail.com> wrote:

> I'm trying to dump the record layout on Xubuntu 13.04, using official APT
> binaries for latest stable 3.4. Unfortunately, it doesn't seem to produce
> any results, as you can see from the following trivial example. Am I doing
> it wrong?
>
> $ cat test.cc
> class Tester {
>     int foo;
> };
>
> int main() {
>     Tester test;
>     return 0;
> }
> $ clang -cc1 -v -fdump-record-layouts test.cc
> clang -cc1 version 3.4 based upon LLVM 3.4 default target
> x86_64-pc-linux-gnu
> #include "..." search starts here:
> End of search list.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131125/671c4a99/attachment.html>


More information about the cfe-dev mailing list