From 52755c472a738e48a9687240368e4c1f78c45711 Mon Sep 17 00:00:00 2001 From: Filip Pizlo Date: Tue, 21 May 2013 20:00:56 +0000 Subject: 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 --- lib/IR/Core.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/IR/Core.cpp') 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); } -- cgit v1.2.3