Hello,
I am building a pass. The pass compiled well. But when I test it, I get a linking error.
Here, what I am doing:
clang -g3 -shared -fno-rtti -fPIC -o mypass.so mypass.cpp //mypass has Value->dump();
opt -load mypass.so -myppass test.ll
I get:
opt: symbol lookup error: mypass.so: undefined symbol: _ZNK4llvm5Value4dumpEv
unable to link/find llvm/Value/dump