[LLVMdev] how to runFunction? passing in an int

gafferuk gafferuk at gmail.com
Thu Aug 19 00:12:10 PDT 2010


I wish to run a function passing in an int value of 5 as a single parameter.

can you please complete the code as all the examples I can find are old.


llvm::Function *EntryFn = Mod->getFunction("createModule");
if (!EntryFn) {
    return 255;
}
else
{
    EE->runFunction(EntryFn, ???????); 
}

Thank you!
-- 
View this message in context: http://old.nabble.com/how-to-runFunction--passing-in-an-int-tp29479138p29479138.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list