Table of Contents

Method HasDebugInfo

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

HasDebugInfo(IDebugType<ITypeRef, DIType>)

Convenience extension for determining if the DIType property is valid

public static bool HasDebugInfo(this IDebugType<ITypeRef, DIType> debugType)

Parameters

debugType IDebugType<ITypeRef, DIType>

Debug type to test for valid Debug information

Returns

bool

true if the type has debug information

Remarks

In LLVM Debug information of null for 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 extension method is used to disambiguate the two possibilities.