[LLVMdev] ExecutionEngine always comes back NULL

Manuele Conti manuele.conti at sirius-es.it
Tue Jan 8 23:45:50 PST 2013


Hi Rick,
you are right!
But can you call this method EngineBuilder::setErrorStr to get creation 
error?

Cheers,
Manuele

Il 08/01/2013 20:27, Rick Mann ha scritto:
> 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.
>




More information about the llvm-dev mailing list