Click or drag to resize
Llvm.NET LogoDebugInfoBuilderCreateArgument Method

[This is preliminary documentation and is subject to change.]

Creates an argument for a function as a DILocalVariable

Namespace:  Llvm.NET.DebugInfo
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public DILocalVariable CreateArgument(
	DIScope scope,
	string name,
	DIFile file,
	uint line,
	DIType type,
	bool alwaysPreserve,
	DebugInfoFlags debugFlags,
	ushort argNo
)

Parameters

scope
Type: Llvm.NET.DebugInfoDIScope
Scope for the argument
name
Type: SystemString
Name of the argument
file
Type: Llvm.NET.DebugInfoDIFile
DIFile containing the function this argument is declared in
line
Type: SystemUInt32
Line number fort his argument
type
Type: Llvm.NET.DebugInfoDIType
Debug type for this argument
alwaysPreserve
Type: SystemBoolean
Flag to indicate if this argument is always preserved for debug view even if optimization would remove it
debugFlags
Type: Llvm.NET.DebugInfoDebugInfoFlags
DebugInfoFlags for this argument
argNo
Type: SystemUInt16
One based argument index on the method (e.g the first argument is 1 not 0 )

Return Value

Type: DILocalVariable
DILocalVariable representing the function argument
See Also