diff options
author | Filip Pizlo <fpizlo@apple.com> | 2013-05-22 02:46:43 +0000 |
---|---|---|
committer | Filip Pizlo <fpizlo@apple.com> | 2013-05-22 02:46:43 +0000 |
commit | 6cfed36338d7728076ddbc1331908b887a4302d3 (patch) | |
tree | 124241eb543667637621e183c67d3741ec948f11 /include/llvm/ExecutionEngine/RTDyldMemoryManager.h | |
parent | 67295357ccab93cb4f4490cc96ab177c0906181f (diff) | |
download | external_llvm-6cfed36338d7728076ddbc1331908b887a4302d3.zip external_llvm-6cfed36338d7728076ddbc1331908b887a4302d3.tar.gz external_llvm-6cfed36338d7728076ddbc1331908b887a4302d3.tar.bz2 |
Expose the RTDyldMemoryManager through the C API. This allows clients of
the C API to provide their own way of allocating JIT memory (both code
and data) and finalizing memory permissions (page protections, cache
flush).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine/RTDyldMemoryManager.h')
-rw-r--r-- | include/llvm/ExecutionEngine/RTDyldMemoryManager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/RTDyldMemoryManager.h b/include/llvm/ExecutionEngine/RTDyldMemoryManager.h index 2e1fc56..99e2594 100644 --- a/include/llvm/ExecutionEngine/RTDyldMemoryManager.h +++ b/include/llvm/ExecutionEngine/RTDyldMemoryManager.h @@ -71,6 +71,10 @@ public: virtual bool finalizeMemory(std::string *ErrMsg = 0) = 0; }; +// Create wrappers for C Binding types (see CBindingWrapping.h). +DEFINE_SIMPLE_CONVERSION_FUNCTIONS( + RTDyldMemoryManager, LLVMMCJITMemoryManagerRef) + } // namespace llvm #endif // LLVM_EXECUTIONENGINE_RT_DYLD_MEMORY_MANAGER_H |