I'm trying to write a basic block pass linking the module to another module during the pass initialization.
Currently my pass initialization code looks like this:
But now I'm getting a strange segmentation fault:
Am I doing something wrong?
I solved it. Actually it wasn't a segfault but a missing library.
The solution is to add the following line to you passes Makefile:
USEDLIBS = LLVMLinker.a
Hopefully that helps someone else who might run into a similar situation.