diff options
author | Filip Pizlo <fpizlo@apple.com> | 2013-05-21 20:00:56 +0000 |
---|---|---|
committer | Filip Pizlo <fpizlo@apple.com> | 2013-05-21 20:00:56 +0000 |
commit | 52755c472a738e48a9687240368e4c1f78c45711 (patch) | |
tree | a46afa0466ad3fcd997652f29d16f069170ac0c2 /include/llvm/ExecutionEngine | |
parent | 3bcc3e6f6316f82adff52a04b0c320c2ce3a3d86 (diff) | |
download | external_llvm-52755c472a738e48a9687240368e4c1f78c45711.zip external_llvm-52755c472a738e48a9687240368e4c1f78c45711.tar.gz external_llvm-52755c472a738e48a9687240368e4c1f78c45711.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@182408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-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 |