Table of Contents

Method CreateArgument

Namespace
Ubiquity.NET.Llvm.DebugInfo
Assembly
Ubiquity.NET.Llvm.dll

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 DIScope

Scope for the argument

name LazyEncodedString

Name of the argument

file DIFile

DIFile containing the function this argument is declared in

line uint

Line number fort his argument

type DIType

Debug type for this argument

alwaysPreserve bool

Flag to indicate if this argument is always preserved for debug view even if optimization would remove it

debugFlags DebugInfoFlags

DebugInfoFlags for this argument

argNo ushort

One based argument index on the method (e.g the first argument is 1 not 0 )

Returns

DILocalVariable

DILocalVariable representing the function argument