No it's not possible. (Something related to the PassManager which needs a Module, I believe).<br>Just use an empty module for creation !<br><br>Olivier.<br><br><div class="gmail_quote">On Fri, Oct 8, 2010 at 1:35 PM, Jochen Wilhelmy <span dir="ltr"><<a href="mailto:j.wilhelmy@arcor.de">j.wilhelmy@arcor.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi!<br>
<br>
ExecutionEngine::addModule seems the method I have to use when I want to<br>
dynamically<br>
load snippets of code (e.g. containing a function) and execute them.<br>
I wonder why ExecutionEngine::create is only available with an initial<br>
module.<br>
I'd like to create an empty ExecutionEngine (i.e. without module) and<br>
then later<br>
use addModule. Is it possible do add such a method or can the pointer to<br>
module<br>
be NULL?<br>
<br>
-Jochen<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>