Displaying 1 result from an estimated 1 matches for "_znk4llvm8function7viewcfgev".
2006 Oct 30
0
[LLVMdev] viewCFG call from opt loaded shared lib
Hey everyone,
I want to call F.viewCFG() from within the Hello.so shared library
runOnFunction() function, but I keep getting:
opt: symbol lookup error: ../../../Debug/lib/LLVMHello.so: undefined
symbol: _ZNK4llvm8Function7viewCFGEv
while using:
"opt -load ../../../Debug/lib/LLVMHello.so -print
/temp/llvm/KellyTest/test.bc"
I assume this means that I need to statically link in
LLVMAnalysis.a/LLVMCodeGen.a where viewCFG is located. I changed the
Makefile by adding these libs to the LLVMlibs variable and
recomp...