summaryrefslogtreecommitdiff
path: root/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorFilip Pizlo <fpizlo@apple.com>2013-05-21 20:00:56 +0000
committerFilip Pizlo <fpizlo@apple.com>2013-05-21 20:00:56 +0000
commit52755c472a738e48a9687240368e4c1f78c45711 (patch)
treea46afa0466ad3fcd997652f29d16f069170ac0c2 /lib/IR/Core.cpp
parent3bcc3e6f6316f82adff52a04b0c320c2ce3a3d86 (diff)
downloadllvm-52755c472a738e48a9687240368e4c1f78c45711.tar.gz
llvm-52755c472a738e48a9687240368e4c1f78c45711.tar.bz2
llvm-52755c472a738e48a9687240368e4c1f78c45711.tar.xz
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 'lib/IR/Core.cpp')
-rw-r--r--lib/IR/Core.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp
index 889d574290..66610bd7f5 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);
}