linking into module of execution engine

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

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