[llvm-dev] Conflicts with custom passes

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 28 13:48:38 PDT 2019

On Fri, 28 Jun 2019 at 21:18, Kihong Heo <kihong.heo at gmail.com> wrote:
> When I search for this issue on Google, it seems to be relevant to “RTTI”.

Yep, that's a typeinfo symbol.

> But as I know LLVM is built by default -fno-rtti. I also explicitly turned off it. Here is my cmake command:
> $ cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_RTTI=OFF -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles"  ../llvm
> Any thought?

My best guess is that your pass was built *with* RTTI (i.e. no
-fno-rtti) but LLVM without. A quick fix would be to switch to
-DLLVM_ENABLE_RTTI=ON, but longer term you may want to look into your
pass's build system.



More information about the llvm-dev mailing list