Identifies a unique instance of a variable.

Synopsis

Declared in <llvm/IR/DebugInfoMetadata.h>

class DebugVariable;

Description

Storage for identifying a potentially inlined instance of a variable, or a fragment thereof. This guarantees that exactly one variable instance may be identified by this class, even when that variable is a fragment of an aggregate variable and/or there is another inlined instance of the same source code variable nearby. This class does not necessarily uniquely identify that variable: it is possible that a DebugVariable with different parameters may point to the same variable instance, but not that one DebugVariable points to multiple variable instances.

Member Functions

Name

Description

DebugVariable [constructor]

Constructors

getFragment

Return the fragment.

getFragmentOrDefault

Return the fragment or default.

getInlinedAt

Return the inlined at.

getVariable

Return the variable.

operator==

Return true if the two values compare equal.

operator<

Return true if this value orders before the other.

Static Member Functions

Name

Description

isDefaultFragment

Return true if this is default fragment.

Derived Classes

Name

Description

DebugVariableAggregate

Identifies a unique instance of a whole variable (discards/ignores fragment information).

Created with MrDocs