LLDB  mainline
Classes | Public Member Functions | Protected Types | Protected Attributes | List of all members
DWARFAttributes Class Reference

#include <DWARFAttribute.h>

Collaboration diagram for DWARFAttributes:
Collaboration graph
[legend]

Classes

struct  AttributeValue
 

Public Member Functions

 DWARFAttributes ()
 
 ~DWARFAttributes ()
 
void Append (const DWARFUnit *cu, dw_offset_t attr_die_offset, dw_attr_t attr, dw_form_t form)
 
const DWARFUnitCompileUnitAtIndex (uint32_t i) const
 
dw_offset_t DIEOffsetAtIndex (uint32_t i) const
 
dw_attr_t AttributeAtIndex (uint32_t i) const
 
dw_attr_t FormAtIndex (uint32_t i) const
 
bool ExtractFormValueAtIndex (uint32_t i, DWARFFormValue &form_value) const
 
uint64_t FormValueAsUnsignedAtIndex (uint32_t i, uint64_t fail_value) const
 
uint64_t FormValueAsUnsigned (dw_attr_t attr, uint64_t fail_value) const
 
uint32_t FindAttributeIndex (dw_attr_t attr) const
 
void Clear ()
 
size_t Size () const
 

Protected Types

typedef llvm::SmallVector< AttributeValue, 8 > collection
 

Protected Attributes

collection m_infos
 

Detailed Description

Definition at line 50 of file DWARFAttribute.h.

Member Typedef Documentation

◆ collection

typedef llvm::SmallVector<AttributeValue, 8> DWARFAttributes::collection
protected

Definition at line 81 of file DWARFAttribute.h.

Constructor & Destructor Documentation

◆ DWARFAttributes()

DWARFAttributes::DWARFAttributes ( )

Definition at line 13 of file DWARFAttribute.cpp.

◆ ~DWARFAttributes()

DWARFAttributes::~DWARFAttributes ( )

Definition at line 15 of file DWARFAttribute.cpp.

Member Function Documentation

◆ Append()

void DWARFAttributes::Append ( const DWARFUnit cu,
dw_offset_t  attr_die_offset,
dw_attr_t  attr,
dw_form_t  form 
)

Definition at line 28 of file DWARFAttribute.cpp.

References m_infos.

Referenced by DWARFDebugInfoEntry::GetAttributes().

◆ AttributeAtIndex()

dw_attr_t DWARFAttributes::AttributeAtIndex ( uint32_t  i) const
inline

◆ Clear()

void DWARFAttributes::Clear ( )
inline

◆ CompileUnitAtIndex()

const DWARFUnit* DWARFAttributes::CompileUnitAtIndex ( uint32_t  i) const
inline

Definition at line 57 of file DWARFAttribute.h.

Referenced by ExtractFormValueAtIndex(), and SymbolFileDWARF::ParseVariableDIE().

◆ DIEOffsetAtIndex()

dw_offset_t DWARFAttributes::DIEOffsetAtIndex ( uint32_t  i) const
inline

Definition at line 60 of file DWARFAttribute.h.

Referenced by ExtractFormValueAtIndex(), and SymbolFileDWARF::ParseVariableDIE().

◆ ExtractFormValueAtIndex()

bool DWARFAttributes::ExtractFormValueAtIndex ( uint32_t  i,
DWARFFormValue form_value 
) const

◆ FindAttributeIndex()

uint32_t DWARFAttributes::FindAttributeIndex ( dw_attr_t  attr) const

Definition at line 17 of file DWARFAttribute.cpp.

References m_infos, and UINT32_MAX.

Referenced by FormValueAsUnsigned().

◆ FormAtIndex()

dw_attr_t DWARFAttributes::FormAtIndex ( uint32_t  i) const
inline

Definition at line 66 of file DWARFAttribute.h.

Referenced by ExtractFormValueAtIndex().

◆ FormValueAsUnsigned()

uint64_t DWARFAttributes::FormValueAsUnsigned ( dw_attr_t  attr,
uint64_t  fail_value 
) const

◆ FormValueAsUnsignedAtIndex()

uint64_t DWARFAttributes::FormValueAsUnsignedAtIndex ( uint32_t  i,
uint64_t  fail_value 
) const

Definition at line 53 of file DWARFAttribute.cpp.

References ExtractFormValueAtIndex(), and DWARFFormValue::Reference().

Referenced by FormValueAsUnsigned().

◆ Size()

size_t DWARFAttributes::Size ( ) const
inline

Definition at line 72 of file DWARFAttribute.h.

Referenced by DWARFDebugInfoEntry::GetAttributes().

Member Data Documentation

◆ m_infos

collection DWARFAttributes::m_infos
protected

Definition at line 82 of file DWARFAttribute.h.

Referenced by Append(), and FindAttributeIndex().


The documentation for this class was generated from the following files: