Эх сурвалжийг харах

Revert "llvm-c: Add LLVMGetPointerToFunction"

This reverts r191030


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191075 91177308-0d34-0410-b5e6-96231b3b80d8
Anders Waldenborg 12 жил өмнө
parent
commit
f46e5eadc3

+ 0 - 2
include/llvm-c/ExecutionEngine.h

@@ -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);

+ 0 - 4
lib/ExecutionEngine/ExecutionEngineBindings.cpp

@@ -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));
 }