Click or drag to resize
Llvm.NET LogoDebugTypeHasDebugInfo Method

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

Convenience extensions for determining if the DIType property is valid

Namespace:  Llvm.NET.DebugInfo
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public static bool HasDebugInfo(
	this IDebugType<ITypeRef, DIType> debugType
)

Parameters

debugType
Type: Llvm.NET.DebugInfoIDebugTypeITypeRef, DIType

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDebugTypeITypeRef, DIType. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
In LLVM Debug information a DIType is used to represent the void type. Thus, looking only at the DIType property is insufficient to distinguish between a type with no debug information and one representing the void type. This property is used to disambiguate the two possibilities.
See Also