LLDB
mainline
|
#include <DWARFAttribute.h>
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 DWARFUnit * | CompileUnitAtIndex (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 |
Definition at line 50 of file DWARFAttribute.h.
|
protected |
Definition at line 81 of file DWARFAttribute.h.
DWARFAttributes::DWARFAttributes | ( | ) |
Definition at line 13 of file DWARFAttribute.cpp.
DWARFAttributes::~DWARFAttributes | ( | ) |
Definition at line 15 of file DWARFAttribute.cpp.
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().
Definition at line 63 of file DWARFAttribute.h.
Referenced by DWARFASTParserClang::GetTypeForDIE(), DWARFASTParser::ParseChildArrayInfo(), DWARFASTParserClang::ParseChildEnumerators(), DWARFASTParserClang::ParseChildMembers(), DWARFASTParserClang::ParseChildParameters(), DWARFASTParserClang::ParseTemplateDIE(), DWARFASTParserClang::ParseTypeFromDWARF(), and SymbolFileDWARF::ParseVariableDIE().
|
inline |
Definition at line 71 of file DWARFAttribute.h.
Referenced by DWARFDebugInfoEntry::GetAttributes(), and DWARFBaseDIE::GetAttributes().
Definition at line 57 of file DWARFAttribute.h.
Referenced by ExtractFormValueAtIndex(), and SymbolFileDWARF::ParseVariableDIE().
|
inline |
Definition at line 60 of file DWARFAttribute.h.
Referenced by ExtractFormValueAtIndex(), and SymbolFileDWARF::ParseVariableDIE().
bool DWARFAttributes::ExtractFormValueAtIndex | ( | uint32_t | i, |
DWARFFormValue & | form_value | ||
) | const |
Definition at line 35 of file DWARFAttribute.cpp.
References CompileUnitAtIndex(), DIEOffsetAtIndex(), DWARFFormValue::ExtractValue(), FormAtIndex(), DWARFUnit::GetData(), DWARFFormValue::SetCompileUnit(), and DWARFFormValue::SetForm().
Referenced by FormValueAsUnsignedAtIndex(), DWARFASTParserClang::GetTypeForDIE(), DWARFASTParser::ParseChildArrayInfo(), DWARFASTParserClang::ParseChildEnumerators(), DWARFASTParserClang::ParseChildMembers(), DWARFASTParserClang::ParseChildParameters(), DWARFASTParserClang::ParseTemplateDIE(), DWARFASTParserClang::ParseTypeFromDWARF(), and SymbolFileDWARF::ParseVariableDIE().
Definition at line 17 of file DWARFAttribute.cpp.
References m_infos, and UINT32_MAX.
Referenced by FormValueAsUnsigned().
Definition at line 66 of file DWARFAttribute.h.
Referenced by ExtractFormValueAtIndex().
uint64_t DWARFAttributes::FormValueAsUnsigned | ( | dw_attr_t | attr, |
uint64_t | fail_value | ||
) | const |
Definition at line 44 of file DWARFAttribute.cpp.
References FindAttributeIndex(), FormValueAsUnsignedAtIndex(), and UINT32_MAX.
Referenced by DWARFDebugInfoEntry::GetParentDeclContextDIE().
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().
|
inline |
Definition at line 72 of file DWARFAttribute.h.
Referenced by DWARFDebugInfoEntry::GetAttributes().
|
protected |
Definition at line 82 of file DWARFAttribute.h.
Referenced by Append(), and FindAttributeIndex().