Changes in directory llvm/include/llvm/ExecutionEngine:
ExecutionEngine.h updated: 1.39 -> 1.40 --- Log message: add a way to have multiple modules in a JIT :) --- Diffs of the changes: (+7 -1) ExecutionEngine.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletion(-) Index: llvm/include/llvm/ExecutionEngine/ExecutionEngine.h diff -u llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.39 llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.40 --- llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.39 Tue Aug 15 20:24:12 2006 +++ llvm/include/llvm/ExecutionEngine/ExecutionEngine.h Tue Aug 15 21:53:27 2006 @@ -88,9 +88,15 @@ ExecutionEngine(Module *M); virtual ~ExecutionEngine(); - //Module &getModule() const { return CurMod; } const TargetData *getTargetData() const { return TD; } + /// addModuleProvider - Add a ModuleProvider to the list of modules that we + /// can JIT from. Note that this takes ownership of the ModuleProvider: when + /// the ExecutionEngine is destroyed, it destroys the MP as well. + void addModuleProvider(ModuleProvider *P) { + Modules.push_back(P); + } + /// FindFunctionNamed - Search all of the active modules to find the one that /// defines FnName. This is very slow operation and shouldn't be used for /// general code. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits