[LLVMdev] FunctionPassManager Issue

Alex Li manlapli at uiuc.edu
Wed Apr 14 22:17:01 PDT 2004


Hi,

I'm a cs326 student that uses LLVM for our MP. While some of the COOL 
program can be run seamlessly, I get the following assertion error for 
many of them.

lli: Pass.cpp:95: bool llvm::FunctionPassManager::run(llvm::Function&):
>> Assertion `(&F == mF) && "ModuleProvider does not contain this
>> function!"' failed.
>> 
>> 

It seems like I need to link a library to it but I'm not sure how to resolve this.

Funny thing, when I use lli -force-interpreter, some of the program runs but have this error message 

Tried to execute an unknown external function: sbyte * (sbyte *) * gets

Again, I'd like to know how I should link in the function so that it 
doesn't complain or fail.

Thank you very much.

Alex



More information about the llvm-dev mailing list