[llvm-commits] [patch] Fix: Kaleidoscope link in JIT and Interpreter by including JIT.h and Interpreter.h

Xerxes RĂ„nby xerxes at zafena.se
Sat Jul 18 13:27:12 PDT 2009


The Kaleidoscope example have been segfaulting recently since the
EngineBuilder have returned a nullpointer for TheExecutionEngine.

The attached patch fixes this by including JIT.h and Interpreter.h so
that ExecutionEngine::JITCtor and ExecutionEngine::InterpCtor gets set
and actually points to the constructors for the JIT and Interpreter and
makes ExecutionEngine::createJIT to be linked in before used by the
EngineBuilder.

Ok to commit?
Xerxes

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Kaleidoscope_include_JIT_and_Interpreter_to_set_ctors.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090718/2c9414e5/attachment.ksh>


More information about the llvm-commits mailing list