LLVM  6.0.0svn
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

 DWARFAttribute (uint32_t O, dwarf::Attribute A=dwarf::Attribute(0), dwarf::Form F=dwarf::Form(0))
 
bool isValid () const
 
 operator bool () const
 
void clear ()
 

Public Attributes

uint32_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
 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 25 of file DWARFAttribute.h.

Constructor & Destructor Documentation

◆ DWARFAttribute()

llvm::DWARFAttribute::DWARFAttribute ( uint32_t  O,
dwarf::Attribute  A = dwarf::Attribute(0),
dwarf::Form  F = dwarf::Form(0) 
)
inline

Definition at line 35 of file DWARFAttribute.h.

Member Function Documentation

◆ clear()

void llvm::DWARFAttribute::clear ( )
inline

◆ isValid()

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

◆ operator bool()

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

Definition at line 42 of file DWARFAttribute.h.

References isValid().

Member Data Documentation

◆ Attr

dwarf::Attribute llvm::DWARFAttribute::Attr

The attribute enumeration of this attribute.

Definition at line 31 of file DWARFAttribute.h.

Referenced by llvm::DWARFDie::attribute_iterator::attribute_iterator(), and llvm::DWARFVerifier::handleDebugInfo().

◆ ByteSize

uint32_t llvm::DWARFAttribute::ByteSize = 0

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

Definition at line 29 of file DWARFAttribute.h.

Referenced by llvm::DWARFDie::attribute_iterator::attribute_iterator().

◆ Offset

uint32_t llvm::DWARFAttribute::Offset = 0

The debug info/types offset for this attribute.

Definition at line 27 of file DWARFAttribute.h.

Referenced by llvm::DWARFDie::attribute_iterator::attribute_iterator().

◆ Value

DWARFFormValue llvm::DWARFAttribute::Value

The form and value for this attribute.

Definition at line 33 of file DWARFAttribute.h.

Referenced by llvm::DWARFDie::attribute_iterator::attribute_iterator(), and llvm::DWARFVerifier::handleDebugInfo().


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