Method HasDebugInfo
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
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.