[LLVMdev] llc undefined symbol

Mike Stump mrs at apple.com
Tue Aug 11 10:15:30 PDT 2009


On Aug 11, 2009, at 8:23 AM, Michael Graumann wrote:
> I'm writing a pass for the llc tool. If I try to load my pass(llc - 
> load ../mypass.so), this error message appears  :
>
> Error opening '/nfs/wsi/ti/graumann/llvm-2.5/Release/lib/ 
> LLVMMicha.so': /nfs/wsi/ti/graumann/llvm-2.5/Release/lib/ 
> LLVMMicha.so: undefined symbol:  
> _ZTVN12_GLOBAL__N_119MyRegisterAllocatorE
>   -load request ignored.

You have to define (instantiate) all your virtual functions.   
runOnMachineFunction is one such function, there may be others as well.



More information about the llvm-dev mailing list