Skip to content

Commit 65d3729

Browse files
authored
revert changes, update comment
1 parent ec4abbf commit 65d3729

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

llvm/include/llvm-c/Core.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2543,6 +2543,7 @@ void LLVMSetUnnamedAddress(LLVMValueRef Global, LLVMUnnamedAddr UnnamedAddr);
25432543
* type of a global value which is always a pointer type.
25442544
*
25452545
* @see llvm::GlobalValue::getValueType()
2546+
* @see llvm::Function::getFunctionType()
25462547
*/
25472548
LLVMTypeRef LLVMGlobalGetValueType(LLVMValueRef Global);
25482549

@@ -3016,13 +3017,6 @@ LLVMValueRef LLVMGetFirstParam(LLVMValueRef Fn);
30163017
*/
30173018
LLVMValueRef LLVMGetLastParam(LLVMValueRef Fn);
30183019

3019-
/**
3020-
* Obtain function type.
3021-
*
3022-
* @see llvm::Function::getFunctionType()
3023-
*/
3024-
LLVMTypeRef LLVMGetFunctionType(LLVMValueRef Fn);
3025-
30263020
/**
30273021
* Obtain the next parameter to a function.
30283022
*

llvm/lib/IR/Core.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2658,10 +2658,6 @@ void LLVMSetParamAlignment(LLVMValueRef Arg, unsigned align) {
26582658
A->addAttr(Attribute::getWithAlignment(A->getContext(), Align(align)));
26592659
}
26602660

2661-
LLVMTypeRef LLVMGetFunctionType(LLVMValueRef Fn) {
2662-
return wrap(unwrap<Function>(Fn)->getFunctionType());
2663-
}
2664-
26652661
/*--.. Operations on ifuncs ................................................--*/
26662662

26672663
LLVMValueRef LLVMAddGlobalIFunc(LLVMModuleRef M,

0 commit comments

Comments
 (0)