[LLVMdev] Pass linking problems
mmwu at princeton.edu
Mon Dec 7 07:36:57 PST 2009
Somehow after rebuilding LLVM, the problem went away. Thanks. I don't
even think I changed my source code.
Duncan Sands wrote:
>> I'm attempting to use Module::getTypeByName in my pass, but when
>> I run the pass with opt, I get this:
>> opt: symbol lookup error:
>> /home/mmwu/Download/32/llvm/Release/lib/ParallelSort.so: undefined
>> symbol: _ZNK4llvm6Module13getTypeByNameENS_9StringRefE
>> The pass worked before I added the call in. What do I need to link
>> with the pass to get it to work? Or is there something wrong with my
> this symbol is defined in libLLVMCore.a. Check that this library does
> come before any users of the symbol on the linker command line.
More information about the llvm-dev