[llvm-dev] Pass error

Nemanja Ivanovic via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 19 06:02:04 PST 2017

I think you're trying to add a pass to the pipeline.

Clearly the compiler isn't getting the correct include path. If I'm not
mistaken, the cmake build system should pick this up automatically if you
put your pass somewhere in one of the correct directories within your llvm
source tree and add the file to the corresponding CMakeLists.txt. The
"correct directory" will depend on what your pass does (i.e. analysis,
transformation, etc.).

On Thu, Jan 19, 2017 at 2:10 PM, Siddharth Shankar Swain via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hello1.cpp:1:10: fatal error: 'llvm/Pass.h' file not found
> #include "llvm/Pass.h"
>          ^
> 1 error generated.
> Please help
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170119/63fb2712/attachment.html>

More information about the llvm-dev mailing list