Method GetFunctionType
GetFunctionType(IContext, ITypeRef, params ITypeRef[])
Get an LLVM Function type (e.g. signature)
public static IFunctionType GetFunctionType(this IContext self, ITypeRef returnType, params ITypeRef[] args)
Parameters
selfIContextInstance of context to get a function type
returnTypeITypeRefReturn type of the function
argsITypeRef[]Potentially empty set of function argument types
Returns
- IFunctionType
Signature type for the specified signature
GetFunctionType(IContext, bool, ITypeRef, params ITypeRef[])
Get an LLVM Function type (e.g. signature)
public static IFunctionType GetFunctionType(this IContext self, bool isVarArgs, ITypeRef returnType, params ITypeRef[] args)
Parameters
selfIContextContext instance to get the function from
isVarArgsboolFlag to indicate if the method supports C/C++ style VarArgs
returnTypeITypeRefReturn type of the function
argsITypeRef[]Potentially empty set of function argument types
Returns
- IFunctionType
Signature type for the specified signature