[LLVMdev] ExecutionEngine always comes back NULL

Rick Mann rmann at latencyzero.com
Tue Jan 8 11:27:32 PST 2013


On Jan 8, 2013, at 8:09 , Manuele Conti <manuele.conti at sirius-es.it> wrote:

> Sorry I forgot to add code that I use to run code:
> /* Executes the AST by running the main function */
> GenericValue CodeGenContext::runCode() {
> 	std::cout << "Running code...\n";
> 	ExecutionEngine *ee = EngineBuilder(module).create();
> <
> div class="line" id="LC37" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">	
> vector<GenericValue> noargs;
> GenericValue v = ee ->runFunction(mainFunction, noargs);
> std::cout << ; "Code was run.\n";
> return v;
> }

Isn't that more-or-less exactly what I have? I don't see anything about the target there.

-- 
Rick






More information about the llvm-dev mailing list