Hi! at first i create an execution engine on a module (llvm::ExecutionEngine::create(module)). 1) is it allowed to modify the module, e.g. add a function? 2) is it allowed to construct a linker on this module, link something in, call linker.releaseModule() and destruct the linker again? -Jochen
On Fri, Oct 8, 2010 at 8:41 AM, Jochen Wilhelmy <j.wilhelmy at arcor.de> wrote:> Hi! > > at first i create an execution engine on a module > (llvm::ExecutionEngine::create(module)). > > 1) is it allowed to modify the module, e.g. add a function?Yes. Most JITs work with a single global module which they add code to as the callgraph expands.> 2) is it allowed to construct a linker on this module, link something > in, call linker.releaseModule() > and destruct the linker again?I don't know. Reid