[cfe-dev] How to compile object C with clang into llvm IR?

John McCall rjmccall at apple.com
Mon Apr 8 10:36:02 PDT 2013


On Apr 5, 2013, at 7:35 PM, Jonathan <gamma_chen at yahoo.com.tw> wrote:
> Following came from tools/clang/test/CodeGenObjC/message-arrays.m. But I don't know how to compile it at terminal command since no clang_cc1 executable file. Can some one help me? I am writing the llvm backend document -- http://jonathan2251.github.com/lbd/index.html

%clang_cc1 essentially expands to %clang -cc1, except that 'lit' adds some extra
arguments after %clang and -cc1 needs to be the first argument, so we need a
custom expansion.

John.



More information about the cfe-dev mailing list