Constructor DebugStructType
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
IDIBuilderTo construct the debug information for this instance
nativeName
stringName of the type in LLVM IR (use Empty for anonymous types)
scope
DIScopeDebug scope for the structure
sourceName
stringSource/debug name of the struct (use Empty for anonymous types)
file
DIFileFile containing the definition of this type
line
uintline number this type is defined at
debugFlags
DebugInfoFlagsdebug flags for this type
members
IEnumerable<DebugMemberInfo>Description of all the members of this structure
derivedFrom
DITypeBase type, if any for this type
packed
boolIndicates if this type is packed or not
bitSize
uint?Total bit size for this type or null to use default for target
bitAlignment
uintAlignment 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
IStructTypeLLVM native type to build debug information for
diBuilder
IDIBuilderTo construct the debug information for this instance
scope
DIScopeDebug scope for the structure
name
stringSource/debug name of the struct (use Empty for anonymous types)
file
DIFileFile containing the definition of this type
line
uintline number this type is defined at
debugFlags
DebugInfoFlagsdebug flags for this type
derivedFrom
DITypeBase type, if any for this type
elements
IEnumerable<DIType>Debug type of all the members of this structure
bitAlignment
uintAlignment 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
IStructTypeLLVM native type to build debug information for
diBuilder
IDIBuilderTo construct the debug information for this instance
scope
DIScopeDebug scope for the structure
name
stringSource/debug name of the struct (use Empty for anonymous types)
file
DIFileFile containing the definition of this type
line
uintline 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
IDIBuilderTo construct the debug information for this instance
nativeName
stringName of the type in LLVM IR
scope
DIScopeDebug scope for the structure
name
stringSource/debug name of the struct (use Empty for anonymous types)
file
DIFileFile containing the definition of this type
line
uintline number this type is defined at
Remarks
This constructor creates a replaceable type that is replaced later with a full definition of the type