aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-16 02:53:27 +0000
committerChris Lattner <sabre@nondot.org>2006-08-16 02:53:27 +0000
commit2e40ae4de67ba37d02281d51e7dfd629205e1e30 (patch)
tree73e7d091002173c406aeef36207afc143ca76cad /include/llvm/ExecutionEngine
parent5c36d78462e373a53fe576188788f9d17c89b466 (diff)
downloadexternal_llvm-2e40ae4de67ba37d02281d51e7dfd629205e1e30.zip
external_llvm-2e40ae4de67ba37d02281d51e7dfd629205e1e30.tar.gz
external_llvm-2e40ae4de67ba37d02281d51e7dfd629205e1e30.tar.bz2
add a way to have multiple modules in a JIT :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index 5966674..828cd3a 100644
--- a/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -88,9 +88,15 @@ public:
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.