Table of Contents

Method CreateLocalVariable

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

CreateLocalVariable(DIScope?, LazyEncodedString, DIFile?, uint, DIType?, bool, DebugInfoFlags, uint)

Creates a DILocalVariable for a given scope

public DILocalVariable CreateLocalVariable(DIScope? scope, LazyEncodedString name, DIFile? file, uint line, DIType? type, bool alwaysPreserve = false, DebugInfoFlags debugFlags = DebugInfoFlags.None, uint alignInBits = 0)

Parameters

scope DIScope

Scope the variable belongs to

name LazyEncodedString

Name of the variable

file DIFile

File where the variable is declared

line uint

Line where the variable is declared

type DIType

Type of the variable

alwaysPreserve bool

Flag to indicate if this variable's debug information should always be preserved

debugFlags DebugInfoFlags

Flags for the variable

alignInBits uint

Variable alignment (in Bits)

Returns

DILocalVariable

DILocalVariable