[PATCH] request for approval to commit: llvm-c: Add LLVMGetPointerToFunction
Anders Waldenborg
anders at 0x63.nu
Wed Sep 18 12:55:12 PDT 2013
wanders added you to the CC list for the revision "request for approval to commit: llvm-c: Add LLVMGetPointerToFunction".
Hi echristo,
http://llvm-reviews.chandlerc.com/D1715
Files:
include/llvm-c/ExecutionEngine.h
lib/ExecutionEngine/ExecutionEngineBindings.cpp
Index: include/llvm-c/ExecutionEngine.h
===================================================================
--- include/llvm-c/ExecutionEngine.h
+++ include/llvm-c/ExecutionEngine.h
@@ -141,6 +141,8 @@
unsigned NumArgs,
LLVMGenericValueRef *Args);
+void *LLVMGetPointerToFunction(LLVMExecutionEngineRef EE, LLVMValueRef F);
+
void LLVMFreeMachineCodeForFunction(LLVMExecutionEngineRef EE, LLVMValueRef F);
void LLVMAddModule(LLVMExecutionEngineRef EE, LLVMModuleRef M);
Index: lib/ExecutionEngine/ExecutionEngineBindings.cpp
===================================================================
--- lib/ExecutionEngine/ExecutionEngineBindings.cpp
+++ lib/ExecutionEngine/ExecutionEngineBindings.cpp
@@ -276,6 +276,10 @@
return wrap(Result);
}
+void *LLVMGetPointerToFunction(LLVMExecutionEngineRef EE, LLVMValueRef F) {
+ return unwrap(EE)->getPointerToFunction(unwrap<Function>(F));
+}
+
void LLVMFreeMachineCodeForFunction(LLVMExecutionEngineRef EE, LLVMValueRef F) {
unwrap(EE)->freeMachineCodeForFunction(unwrap<Function>(F));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1715.1.patch
Type: text/x-patch
Size: 1123 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130918/57606beb/attachment.bin>
More information about the llvm-commits
mailing list