Method CreateFunction
CreateFunction(IModule, IDIBuilder, LazyEncodedString, bool, IDebugType<ITypeRef, DIType>, params IDebugType<ITypeRef, DIType>[])
Creates a function
public static Function CreateFunction(this IModule self, IDIBuilder diBuilder, LazyEncodedString name, bool isVarArg, IDebugType<ITypeRef, DIType> returnType, params IDebugType<ITypeRef, DIType>[] argumentTypes)
Parameters
selfIModuleModules to use for creating the function
diBuilderIDIBuilderDIBuilder for creation of debug information
nameLazyEncodedStringName of the function
isVarArgboolFlag indicating if the function supports a variadic argument list
returnTypeIDebugType<ITypeRef, DIType>Return type of the function
argumentTypesIDebugType<ITypeRef, DIType>[]Arguments for the function
Returns
- Function
Function, matching the signature specified. This may be a previously declared or defined function or a new function if none matching the name and signature is already present.