File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -3016,6 +3016,13 @@ LLVMValueRef LLVMGetFirstParam(LLVMValueRef Fn);
30163016 */
30173017LLVMValueRef LLVMGetLastParam (LLVMValueRef Fn );
30183018
3019+ /**
3020+ * Obtain function type.
3021+ *
3022+ * @see llvm::Function::getFunctionType()
3023+ */
3024+ LLVMTypeRef LLVMGetFunctionType (LLVMValueRef Fn );
3025+
30193026/**
30203027 * Obtain the next parameter to a function.
30213028 *
Original file line number Diff line number Diff line change @@ -2658,6 +2658,10 @@ 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+
26612665/* --.. Operations on ifuncs ................................................--*/
26622666
26632667LLVMValueRef LLVMAddGlobalIFunc (LLVMModuleRef M,
You can’t perform that action at this time.
0 commit comments