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
scope
DIScopeDIScope for the function
name
LazyEncodedStringName of the function as it appears in the source language
mangledName
LazyEncodedStringLinkage (mangled) name of the function
file
DIFileDIFile containing the function
line
uintstarting line of the function definition
signatureType
DISubroutineTypeDISubroutineType for the function's signature type
isLocalToUnit
boolFlag to indicate if this function is local to the compilation unit or available externally
isDefinition
boolFlag to indicate if this is a definition or a declaration only
scopeLine
uintstarting line of the first scope of the function's body
debugFlags
DebugInfoFlagsDebugInfoFlags for this function
isOptimized
boolFlag to indicate if this function is optimized
function
FunctionUnderlying LLVM Function to attach debug info to
Returns
- DISubProgram
DISubProgram created based on the input parameters