[llvm] r180229 - Exposing MCJIT through C API

Filip Pizlo fpizlo at apple.com
Fri Apr 26 16:26:22 PDT 2013


This fixes it.

The problem was the OCaml tests were linking ExecutionEngine but not any JITs, and my changes to ExecutionEngineBindings.cpp introduced a dependency from libLLVMExecutionEngine.a to libLLVMMCJIT.a.  I don't think we want that dependency.  The fix, which this patch does, is to not have ExecutionEngineBindings allocate SectionMemoryManager, but instead to have MCJIT assume that it should allocate a SectionMemoryManager for you if MM == 0.



-F


On Apr 26, 2013, at 3:42 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:

>> I got exactly the same error.  I don't think it is ppc specific. I
>> think it will fail on a Debug+Asserts build with ocaml installed.
>> Trying on x86 to be sure.
> 
> Yes, this reproduces on linux x86-64:
> 
> * Make sure you have /usr/bin/ocamlopt
> * configure with just --enable-assertions
> * ./Debug+Asserts/bin/llvm-lit -v .../test/Bindings/Ocaml/executionengine.ml
> 
> Cheers,
> Rafael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130426/87b3c7ed/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mcjit.patch
Type: application/octet-stream
Size: 15353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130426/87b3c7ed/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130426/87b3c7ed/attachment-0001.html>


More information about the llvm-commits mailing list