[LLVMdev] construction of ExecutionEngine without module

Olivier Meurant meurant.olivier at gmail.com
Fri Oct 8 07:47:50 PDT 2010


No it's not possible. (Something related to the PassManager which needs a
Module, I believe).
Just use an empty module for creation !

Olivier.

On Fri, Oct 8, 2010 at 1:35 PM, Jochen Wilhelmy <j.wilhelmy at arcor.de> wrote:

> Hi!
>
> ExecutionEngine::addModule seems the method I have to use when I want to
> dynamically
> load snippets of code (e.g. containing a function) and execute them.
> I wonder why ExecutionEngine::create is only available with an initial
> module.
> I'd like to create an empty ExecutionEngine (i.e. without module) and
> then later
> use addModule. Is it possible do add such a method or can the pointer to
> module
> be NULL?
>
> -Jochen
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101008/e1acdd70/attachment.html>


More information about the llvm-dev mailing list