[LLVMdev] loadable backend versus analysis pass

Nico listiges at arcor.de
Wed Jul 23 07:58:42 PDT 2008


Hi,

is there a problem with loadable backends and some analysis passes?

An example: If I put the C backend in my project directory, compile a  
library form the code, and try to load it into lli I get the following  
message:

-------------------------------------------------------
lli -load /path/CBackend.dylib

Error opening '/path/CBackend.dylib': dlopen(/path/CBackend.dylib, 1):  
Symbol not found: __ZTIN4llvm13FindUsedTypesE
   Referenced from: /path/CBackend.dylib
   Expected in: flat namespace

   -load request ignored.
-------------------------------------------------------

'FindUsedTypes' is an analysis pass needed by the C backend. I don't  
know why there is this linker problem
But not all analysis passes lead to link problems. For instance  
'LoopInfo' doesn't (if my tests were right).

I don't know if it is a common problem or if I made something wrong or  
missed some documentation. Perhaps someone is able to help me?

Thanks a lot,
Nico



More information about the llvm-dev mailing list