Method CreateArgument
CreateArgument(DIScope?, LazyEncodedString, DIFile?, uint, DIType?, bool, DebugInfoFlags, ushort)
Creates an argument for a function as a DILocalVariable
DILocalVariable CreateArgument(DIScope? scope, LazyEncodedString name, DIFile? file, uint line, DIType? type, bool alwaysPreserve, DebugInfoFlags debugFlags, ushort argNo)
Parameters
scope
DIScopeScope for the argument
name
LazyEncodedStringName of the argument
file
DIFileDIFile containing the function this argument is declared in
line
uintLine number fort his argument
type
DITypeDebug type for this argument
alwaysPreserve
boolFlag to indicate if this argument is always preserved for debug view even if optimization would remove it
debugFlags
DebugInfoFlagsDebugInfoFlags for this argument
argNo
ushortOne based argument index on the method (e.g the first argument is 1 not 0 )
Returns
- DILocalVariable
DILocalVariable representing the function argument