llvm.org GIT mirror llvm / 2e40ae4
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 Chris Lattner 14 years ago
1 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8787 ExecutionEngine(Module *M);
8888 virtual ~ExecutionEngine();
8989
90 //Module &getModule() const { return CurMod; }
9190 const TargetData *getTargetData() const { return TD; }
9291
92 /// addModuleProvider - Add a ModuleProvider to the list of modules that we
93 /// can JIT from. Note that this takes ownership of the ModuleProvider: when
94 /// the ExecutionEngine is destroyed, it destroys the MP as well.
95 void addModuleProvider(ModuleProvider *P) {
96 Modules.push_back(P);
97 }
98
9399 /// FindFunctionNamed - Search all of the active modules to find the one that
94100 /// defines FnName. This is very slow operation and shouldn't be used for
95101 /// general code.