Skip to content

Commit fc8ca53

Browse files
committed
Revert "llvm-c: Add LLVMGetPointerToFunction"
This reverts r191030 llvm-svn: 191075
1 parent 481d90c commit fc8ca53

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

llvm/include/llvm-c/ExecutionEngine.h

-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ LLVMGenericValueRef LLVMRunFunction(LLVMExecutionEngineRef EE, LLVMValueRef F,
141141
unsigned NumArgs,
142142
LLVMGenericValueRef *Args);
143143

144-
void *LLVMGetPointerToFunction(LLVMExecutionEngineRef EE, LLVMValueRef F);
145-
146144
void LLVMFreeMachineCodeForFunction(LLVMExecutionEngineRef EE, LLVMValueRef F);
147145

148146
void LLVMAddModule(LLVMExecutionEngineRef EE, LLVMModuleRef M);

llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,6 @@ LLVMGenericValueRef LLVMRunFunction(LLVMExecutionEngineRef EE, LLVMValueRef F,
276276
return wrap(Result);
277277
}
278278

279-
void *LLVMGetPointerToFunction(LLVMExecutionEngineRef EE, LLVMValueRef F) {
280-
return unwrap(EE)->getPointerToFunction(unwrap<Function>(F));
281-
}
282-
283279
void LLVMFreeMachineCodeForFunction(LLVMExecutionEngineRef EE, LLVMValueRef F) {
284280
unwrap(EE)->freeMachineCodeForFunction(unwrap<Function>(F));
285281
}

0 commit comments

Comments
 (0)