LLDB mainline
|
#include <DWARFAttribute.h>
Classes | |
struct | AttributeValue |
Public Member Functions | |
DWARFAttributes () | |
~DWARFAttributes () | |
void | Append (const DWARFFormValue &form_value, dw_offset_t attr_die_offset, dw_attr_t attr) |
DWARFUnit * | CompileUnitAtIndex (uint32_t i) const |
dw_offset_t | DIEOffsetAtIndex (uint32_t i) const |
dw_attr_t | AttributeAtIndex (uint32_t i) const |
dw_form_t | FormAtIndex (uint32_t i) const |
DWARFFormValue::ValueType | ValueAtIndex (uint32_t i) const |
bool | ExtractFormValueAtIndex (uint32_t i, DWARFFormValue &form_value) const |
DWARFDIE | FormValueAsReferenceAtIndex (uint32_t i) const |
DWARFDIE | FormValueAsReference (dw_attr_t attr) 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 40 of file DWARFAttribute.h.
|
protected |
Definition at line 72 of file DWARFAttribute.h.
DWARFAttributes::DWARFAttributes | ( | ) |
Definition at line 15 of file DWARFAttribute.cpp.
|
default |
void DWARFAttributes::Append | ( | const DWARFFormValue & | form_value, |
dw_offset_t | attr_die_offset, | ||
dw_attr_t | attr | ||
) |
Definition at line 30 of file DWARFAttribute.cpp.
References DWARFFormValue::Form(), DWARFFormValue::GetUnit(), m_infos, and DWARFFormValue::Value().
Referenced by DWARFDebugInfoEntry::GetAttributes().
|
inline |
Definition at line 51 of file DWARFAttribute.h.
References m_infos.
Referenced by DWARFUnit::AddUnitDIE(), SymbolFileDWARF::CollectCallEdges(), CollectCallSiteParameters(), DWARFASTParserClang::GetTypeForDIE(), lldb_private::ManualDWARFIndex::IndexUnitImpl(), DWARFASTParser::ParseChildArrayInfo(), DWARFASTParserClang::ParseChildEnumerators(), DWARFASTParserClang::ParseChildParameters(), ParsedDWARFTypeAttributes::ParsedDWARFTypeAttributes(), DWARFASTParserClang::ParseInheritance(), DWARFASTParserClang::ParseTemplateDIE(), and SymbolFileDWARF::ParseVariableDIE().
|
inline |
Definition at line 62 of file DWARFAttribute.h.
References m_infos.
Referenced by DWARFDebugInfoEntry::GetAttributes().
|
inline |
Definition at line 47 of file DWARFAttribute.h.
References m_infos.
Referenced by ExtractFormValueAtIndex(), DWARFASTParserClang::ParseChildEnumerators(), ParsedDWARFTypeAttributes::ParsedDWARFTypeAttributes(), and SymbolFileDWARF::ParseVariableDIE().
|
inline |
Definition at line 48 of file DWARFAttribute.h.
References m_infos.
Referenced by ExtractFormValueAtIndex().
bool DWARFAttributes::ExtractFormValueAtIndex | ( | uint32_t | i, |
DWARFFormValue & | form_value | ||
) | const |
Definition at line 38 of file DWARFAttribute.cpp.
References CompileUnitAtIndex(), DIEOffsetAtIndex(), DWARFFormValue::ExtractValue(), DWARFFormValue::Form(), FormAtIndex(), DWARFUnit::GetData(), DWARFFormValue::SetForm(), DWARFFormValue::SetUnit(), DWARFFormValue::SetValue(), and ValueAtIndex().
Referenced by DWARFUnit::AddUnitDIE(), SymbolFileDWARF::CollectCallEdges(), CollectCallSiteParameters(), FormValueAsReferenceAtIndex(), DWARFASTParserClang::GetTypeForDIE(), lldb_private::ManualDWARFIndex::IndexUnitImpl(), DWARFASTParser::ParseChildArrayInfo(), DWARFASTParserClang::ParseChildEnumerators(), DWARFASTParserClang::ParseChildParameters(), ParsedDWARFTypeAttributes::ParsedDWARFTypeAttributes(), DWARFASTParserClang::ParseInheritance(), DWARFASTParserClang::ParseTemplateDIE(), and SymbolFileDWARF::ParseVariableDIE().
uint32_t DWARFAttributes::FindAttributeIndex | ( | dw_attr_t | attr | ) | const |
Definition at line 19 of file DWARFAttribute.cpp.
References m_infos, and UINT32_MAX.
Referenced by FormValueAsReference().
|
inline |
Definition at line 54 of file DWARFAttribute.h.
References m_infos.
Referenced by ExtractFormValueAtIndex().
Definition at line 52 of file DWARFAttribute.cpp.
References FindAttributeIndex(), FormValueAsReferenceAtIndex(), and UINT32_MAX.
Referenced by DWARFDebugInfoEntry::GetParentDeclContextDIE().
DWARFDIE DWARFAttributes::FormValueAsReferenceAtIndex | ( | uint32_t | i | ) | const |
Definition at line 60 of file DWARFAttribute.cpp.
References ExtractFormValueAtIndex(), and DWARFFormValue::Reference().
Referenced by FormValueAsReference().
|
inline |
Definition at line 63 of file DWARFAttribute.h.
References m_infos.
Referenced by DWARFUnit::AddUnitDIE(), SymbolFileDWARF::CollectCallEdges(), CollectCallSiteParameters(), DWARFASTParserClang::GetTypeForDIE(), lldb_private::ManualDWARFIndex::IndexUnitImpl(), DWARFASTParser::ParseChildArrayInfo(), DWARFASTParserClang::ParseChildEnumerators(), DWARFASTParserClang::ParseChildParameters(), ParsedDWARFTypeAttributes::ParsedDWARFTypeAttributes(), DWARFASTParserClang::ParseInheritance(), DWARFASTParserClang::ParseTemplateDIE(), and SymbolFileDWARF::ParseVariableDIE().
|
inline |
Definition at line 55 of file DWARFAttribute.h.
References m_infos.
Referenced by ExtractFormValueAtIndex().
|
protected |
Definition at line 73 of file DWARFAttribute.h.
Referenced by Append(), AttributeAtIndex(), Clear(), CompileUnitAtIndex(), DIEOffsetAtIndex(), FindAttributeIndex(), FormAtIndex(), Size(), and ValueAtIndex().