compiling llvm src into llvm bitcode

Hi all,

Is there an easy way to compile llvm src code into llvm bitcode? Would just changing CC in the makefile work?

Thanks,
Alvin

Is there an easy way to compile llvm src code into llvm bitcode? Would just
changing CC in the makefile work?

Pass the -emit-llvm flag to llvm-gcc or clang. You can put it in CFLAGS.

Ciao,

Duncan.

If you mean actual llvm src code (not C), then use llvm-as.

~michael