llvm::DebugVariable

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

NameDescription
DebugVariable [constructor]Constructors
getFragment
getFragmentOrDefault
getInlinedAt
getVariable
operator== Equality operator
operator< Less-than operator

Static Member Functions

Name
isDefaultFragment

Derived Classes

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