Revert "llvm-c: Add LLVMGetPointerToFunction"
authorAnders Waldenborg <anders@0x63.nu>
Fri, 20 Sep 2013 07:00:36 +0000 (07:00 +0000)
committerAnders Waldenborg <anders@0x63.nu>
Fri, 20 Sep 2013 07:00:36 +0000 (07:00 +0000)
This reverts r191030

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191075 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/ExecutionEngine.h
lib/ExecutionEngine/ExecutionEngineBindings.cpp

index 696d871331fb89618ec0734f6d71713693ed0b68..50fdb6bd7356e14d39961395a471cba646427d54 100644 (file)
@@ -141,8 +141,6 @@ LLVMGenericValueRef LLVMRunFunction(LLVMExecutionEngineRef EE, LLVMValueRef F,
                                     unsigned NumArgs,
                                     LLVMGenericValueRef *Args);
 
-void *LLVMGetPointerToFunction(LLVMExecutionEngineRef EE, LLVMValueRef F);
-
 void LLVMFreeMachineCodeForFunction(LLVMExecutionEngineRef EE, LLVMValueRef F);
 
 void LLVMAddModule(LLVMExecutionEngineRef EE, LLVMModuleRef M);
index f7abf95f5e2e1c7c0c87548b15f7045523f0e230..88e73bf253e496d2d46d316b714237212751569a 100644 (file)
@@ -276,10 +276,6 @@ 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));
 }