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 /lib/IR/Core.cpp | |
parent | 67295357ccab93cb4f4490cc96ab177c0906181f (diff) |
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 'lib/IR/Core.cpp')
-rw-r--r-- | lib/IR/Core.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index 889d5742906..66610bd7f5b 100644 --- a/lib/IR/Core.cpp +++ b/lib/IR/Core.cpp @@ -58,6 +58,10 @@ void LLVMShutdown() { /*===-- Error handling ----------------------------------------------------===*/ +char *LLVMCreateMessage(const char *Message) { + return strdup(Message); +} + void LLVMDisposeMessage(char *Message) { free(Message); } |