[LLVMdev] Pass linking problems

Michael Wu mmwu at princeton.edu
Sun Dec 6 14:53:06 PST 2009


    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 setup?


More information about the llvm-dev mailing list