[llvm-dev] LLVM pass error

Siddharth Shankar Swain via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 19 22:08:02 PST 2017

I am getting the following error while compiling my pass file with clang to
emit bitcode

Hello1.cpp:1:10: fatal error: 'llvm/Pass.h' file not found
#include "llvm/Pass.h"
1 error generated.

I had included this .cpp file for implementing function pass in
lib/Transform/Hello1 directory and also made approriate changes in
cmakelists.txt file and again build from the root directrory. I am also
getting as a result LLVMHello1.so in llvm/build/lib/ directory.

Please guide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170120/36bc1407/attachment.html>

More information about the llvm-dev mailing list