Table of Contents

Constructor DebugStructType

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

DebugStructType(IDIBuilder, string, DIScope?, string, DIFile?, uint, DebugInfoFlags, IEnumerable<DebugMemberInfo>, DIType?, bool, uint?, uint)

Initializes a new instance of the DebugStructType class.

public DebugStructType(IDIBuilder diBuilder, string nativeName, DIScope? scope, string sourceName, DIFile? file, uint line, DebugInfoFlags debugFlags, IEnumerable<DebugMemberInfo> members, DIType? derivedFrom = null, bool packed = false, uint? bitSize = null, uint bitAlignment = 0)

Parameters

diBuilder IDIBuilder

To construct the debug information for this instance

nativeName string

Name of the type in LLVM IR (use Empty for anonymous types)

scope DIScope

Debug scope for the structure

sourceName string

Source/debug name of the struct (use Empty for anonymous types)

file DIFile

File containing the definition of this type

line uint

line number this type is defined at

debugFlags DebugInfoFlags

debug flags for this type

members IEnumerable<DebugMemberInfo>

Description of all the members of this structure

derivedFrom DIType

Base type, if any for this type

packed bool

Indicates if this type is packed or not

bitSize uint?

Total bit size for this type or null to use default for target

bitAlignment uint

Alignment of the type in bits, 0 indicates default for target

DebugStructType(IStructType, IDIBuilder, DIScope?, string, DIFile?, uint, DebugInfoFlags, DIType?, IEnumerable<DIType>, uint)

Initializes a new instance of the DebugStructType class.

public DebugStructType(IStructType llvmType, IDIBuilder diBuilder, DIScope? scope, string name, DIFile? file, uint line, DebugInfoFlags debugFlags, DIType? derivedFrom, IEnumerable<DIType> elements, uint bitAlignment = 0)

Parameters

llvmType IStructType

LLVM native type to build debug information for

diBuilder IDIBuilder

To construct the debug information for this instance

scope DIScope

Debug scope for the structure

name string

Source/debug name of the struct (use Empty for anonymous types)

file DIFile

File containing the definition of this type

line uint

line number this type is defined at

debugFlags DebugInfoFlags

debug flags for this type

derivedFrom DIType

Base type, if any for this type

elements IEnumerable<DIType>

Debug type of all the members of this structure

bitAlignment uint

Alignment of the type in bits, 0 indicates default for target

DebugStructType(IStructType, IDIBuilder, DIScope?, string, DIFile?, uint)

Initializes a new instance of the DebugStructType class.

public DebugStructType(IStructType llvmType, IDIBuilder diBuilder, DIScope? scope, string name, DIFile? file, uint line)

Parameters

llvmType IStructType

LLVM native type to build debug information for

diBuilder IDIBuilder

To construct the debug information for this instance

scope DIScope

Debug scope for the structure

name string

Source/debug name of the struct (use Empty for anonymous types)

file DIFile

File containing the definition of this type

line uint

line number this type is defined at

Remarks

This constructor creates a replaceable type that is replaced later with a full definition of the type

DebugStructType(IDIBuilder, string, DIScope?, string, DIFile?, uint)

Initializes a new instance of the DebugStructType class.

public DebugStructType(IDIBuilder diBuilder, string nativeName, DIScope? scope, string name, DIFile? file = null, uint line = 0)

Parameters

diBuilder IDIBuilder

To construct the debug information for this instance

nativeName string

Name of the type in LLVM IR

scope DIScope

Debug scope for the structure

name string

Source/debug name of the struct (use Empty for anonymous types)

file DIFile

File containing the definition of this type

line uint

line number this type is defined at

Remarks

This constructor creates a replaceable type that is replaced later with a full definition of the type