Method CreateFunction
CreateFunction(DIScope?, LazyEncodedString, LazyEncodedString, DIFile?, uint, DISubroutineType?, bool, bool, uint, DebugInfoFlags, bool, Function)
Factory method to create a DISubProgram with debug information
public DISubProgram CreateFunction(DIScope? scope, LazyEncodedString name, LazyEncodedString mangledName, DIFile? file, uint line, DISubroutineType? signatureType, bool isLocalToUnit, bool isDefinition, uint scopeLine, DebugInfoFlags debugFlags, bool isOptimized, Function function)
Parameters
scopeDIScopeDIScope for the function
nameLazyEncodedStringName of the function as it appears in the source language
mangledNameLazyEncodedStringLinkage (mangled) name of the function
fileDIFileDIFile containing the function
lineuintstarting line of the function definition
signatureTypeDISubroutineTypeDISubroutineType for the function's signature type
isLocalToUnitboolFlag to indicate if this function is local to the compilation unit or available externally
isDefinitionboolFlag to indicate if this is a definition or a declaration only
scopeLineuintstarting line of the first scope of the function's body
debugFlagsDebugInfoFlagsDebugInfoFlags for this function
isOptimizedboolFlag to indicate if this function is optimized
functionFunctionUnderlying LLVM Function to attach debug info to
Returns
- DISubProgram
DISubProgram created based on the input parameters