diff options
author | Anders Waldenborg <anders@0x63.nu> | 2013-09-19 19:55:06 +0000 |
---|---|---|
committer | Anders Waldenborg <anders@0x63.nu> | 2013-09-19 19:55:06 +0000 |
commit | f2144ed4399c6414a4f35b10c2fcc9782f32fbf3 (patch) | |
tree | b4ee822464b5896873778364bbbb12a21e5b45de /lib/ExecutionEngine | |
parent | f89dacb78244825a5c555be1eb4c18d12365845c (diff) | |
download | llvm-f2144ed4399c6414a4f35b10c2fcc9782f32fbf3.tar.gz llvm-f2144ed4399c6414a4f35b10c2fcc9782f32fbf3.tar.bz2 llvm-f2144ed4399c6414a4f35b10c2fcc9782f32fbf3.tar.xz |
llvm-c: Add LLVMGetPointerToFunction
Differential Revision: http://llvm-reviews.chandlerc.com/D1715
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191030 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngineBindings.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngineBindings.cpp b/lib/ExecutionEngine/ExecutionEngineBindings.cpp index 88e73bf253..f7abf95f5e 100644 --- a/lib/ExecutionEngine/ExecutionEngineBindings.cpp +++ b/lib/ExecutionEngine/ExecutionEngineBindings.cpp @@ -276,6 +276,10 @@ LLVMGenericValueRef LLVMRunFunction(LLVMExecutionEngineRef EE, LLVMValueRef F, 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)); } |