[cfe-dev] x86_64 with -emit-llvm
Daniel Dunbar
daniel at zuster.org
Sun Oct 25 16:15:40 PDT 2009
On Sun, Oct 25, 2009 at 2:18 PM, Renato Golin <rengolin at systemcall.org> wrote:
> 2009/10/25 Daniel Dunbar <daniel at zuster.org>:
>> Use 'clang -c -emit-llvm anyfile.c', this will give you an LLVM
>> bitcode file as anyfile.o.
>
> Thanks Daniel, it worked.
>
> $ clang -c foo.c -o - -emit-llvm | llvm-dis -o=- | less
>
> How can I read the AST file generated by the -emit-ast ?
To do what? It's a binary file meant to be read by clang, nothing else.
- Daniel
More information about the cfe-dev
mailing list