summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorFilip Pizlo <fpizlo@apple.com>2013-05-22 02:46:43 +0000
committerFilip Pizlo <fpizlo@apple.com>2013-05-22 02:46:43 +0000
commit3fdbaff3b9750bbf326a99d21d3bd41309657d64 (patch)
treeee1dacb5605916b0a5bf514d444eb633234961c1 /llvm/lib/IR/Core.cpp
parentcf1e6574c23a6f799ed7f312643b6fd34d4cf6fa (diff)
downloadbcm5719-llvm-3fdbaff3b9750bbf326a99d21d3bd41309657d64.tar.gz
bcm5719-llvm-3fdbaff3b9750bbf326a99d21d3bd41309657d64.zip
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). llvm-svn: 182448
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r--llvm/lib/IR/Core.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 889d5742906..66610bd7f5b 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud