LLVM  13.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::DWARFAttribute Struct Reference

Encapsulates a DWARF attribute value and all of the data required to describe the attribute value. More...

#include "llvm/DebugInfo/DWARF/DWARFAttribute.h"

Collaboration diagram for llvm::DWARFAttribute:
Collaboration graph
[legend]

Public Member Functions

bool isValid () const
 
 operator bool () const
 

Static Public Member Functions

static bool mayHaveLocationDescription (dwarf::Attribute Attr)
 Identifies DWARF attributes that may contain a reference to a DWARF expression. More...
 

Public Attributes

uint64_t Offset = 0
 The debug info/types offset for this attribute. More...
 
uint32_t ByteSize = 0
 The debug info/types section byte size of the data for this attribute. More...
 
dwarf::Attribute Attr = dwarf::Attribute(0)
 The attribute enumeration of this attribute. More...
 
DWARFFormValue Value
 The form and value for this attribute. More...
 

Detailed Description

Encapsulates a DWARF attribute value and all of the data required to describe the attribute value.

This class is designed to be used by clients that want to iterate across all attributes in a DWARFDie.

Definition at line 24 of file DWARFAttribute.h.

Member Function Documentation

◆ isValid()

bool llvm::DWARFAttribute::isValid ( ) const
inline

Definition at line 34 of file DWARFAttribute.h.

References Attr, and Offset.

Referenced by operator bool(), and llvm::DWARFDie::attribute_iterator::operator bool().

◆ mayHaveLocationDescription()

static bool llvm::DWARFAttribute::mayHaveLocationDescription ( dwarf::Attribute  Attr)
static

Identifies DWARF attributes that may contain a reference to a DWARF expression.

◆ operator bool()

llvm::DWARFAttribute::operator bool ( ) const
inlineexplicit

Definition at line 38 of file DWARFAttribute.h.

References isValid().

Member Data Documentation

◆ Attr

dwarf::Attribute llvm::DWARFAttribute::Attr = dwarf::Attribute(0)

The attribute enumeration of this attribute.

Definition at line 30 of file DWARFAttribute.h.

Referenced by isValid().

◆ ByteSize

uint32_t llvm::DWARFAttribute::ByteSize = 0

The debug info/types section byte size of the data for this attribute.

Definition at line 28 of file DWARFAttribute.h.

◆ Offset

uint64_t llvm::DWARFAttribute::Offset = 0

The debug info/types offset for this attribute.

Definition at line 26 of file DWARFAttribute.h.

Referenced by isValid().

◆ Value

DWARFFormValue llvm::DWARFAttribute::Value

The form and value for this attribute.

Definition at line 32 of file DWARFAttribute.h.


The documentation for this struct was generated from the following file: