I want clang to compile my C/C++ code to LLVM bytecode rather than binary executable. How can I achieve that? And if I get the LLVM by
C/C++
LLVM
Use
clang -emit-llvm -o foo.bc -c foo.c clang -o foo foo.bc