How to Compile and Run llc-3.4 generated C++ code using native compiler(g++)?
问题 Note: Goal of this work is to use some of the c++11 features in non c++11 compiler Following steps are done, Generate llvm bit code, clang++ -emit-llvm -c test.cc -o test.o Convert llvm bitcode to c++ code, llc-3.4 test.o -o test.cpp -march=cpp Getting below error while compiling the llvm generated c++ code using GNU g++ arunprasadr@geekvm:~/works/myex/llvm$ g++ test.cpp test.cpp:3:23: fatal error: llvm/Pass.h: No such file or directory compilation terminated. I even tried adding llvm-dev