diff options
author | Nate Begeman <natebegeman@mac.com> | 2009-01-23 19:27:28 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2009-01-23 19:27:28 +0000 |
commit | 60789e419e04c260e36af9a1add5ad316313e490 (patch) | |
tree | ea85a92bbe18370a4773874fe6227a7d6eca29ba /include | |
parent | 80303aade2b473004bde914db6c368a77af0f8a8 (diff) | |
download | external_llvm-60789e419e04c260e36af9a1add5ad316313e490.zip external_llvm-60789e419e04c260e36af9a1add5ad316313e490.tar.gz external_llvm-60789e419e04c260e36af9a1add5ad316313e490.tar.bz2 |
Add support for deleting a module provider from a JIT in such a way that it does not cause the owned module to be fully materialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index a26c755..3559ede 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -143,10 +143,16 @@ public: /// removeModuleProvider - Remove a ModuleProvider from the list of modules. - /// Release module from ModuleProvider. + /// Relases the Module from the ModuleProvider, materializing it in the + /// process, and returns the materialized Module. virtual Module* removeModuleProvider(ModuleProvider *P, std::string *ErrInfo = 0); + /// deleteModuleProvider - Remove a ModuleProvider from the list of modules, + /// and deletes the ModuleProvider and owned Module. Avoids materializing + /// the underlying module. + virtual void deleteModuleProvider(ModuleProvider *P,std::string *ErrInfo = 0); + /// 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. |