|
LLVM
4.0.0
|
#include <DWARFAbbreviationDeclaration.h>
Classes | |
| struct | AttributeSpec |
Public Types | |
| typedef SmallVector < AttributeSpec, 8 > | AttributeSpecVector |
| typedef iterator_range < AttributeSpecVector::const_iterator > | attr_iterator_range |
Public Member Functions | |
| DWARFAbbreviationDeclaration () | |
| uint32_t | getCode () const |
| dwarf::Tag | getTag () const |
| bool | hasChildren () const |
| attr_iterator_range | attributes () const |
| dwarf::Form | getFormByIndex (uint32_t idx) const |
| Optional< uint32_t > | findAttributeIndex (dwarf::Attribute attr) const |
| Get the index of the specified attribute. More... | |
| Optional< DWARFFormValue > | getAttributeValue (const uint32_t DIEOffset, const dwarf::Attribute Attr, const DWARFUnit &U) const |
| Extract a DWARF form value from a DIE specified by DIE offset. More... | |
| bool | extract (DataExtractor Data, uint32_t *OffsetPtr) |
| void | dump (raw_ostream &OS) const |
| Optional< size_t > | getFixedAttributesByteSize (const DWARFUnit &U) const |
Definition at line 23 of file DWARFAbbreviationDeclaration.h.
| typedef iterator_range<AttributeSpecVector::const_iterator> llvm::DWARFAbbreviationDeclaration::attr_iterator_range |
Definition at line 62 of file DWARFAbbreviationDeclaration.h.
Definition at line 53 of file DWARFAbbreviationDeclaration.h.
| DWARFAbbreviationDeclaration::DWARFAbbreviationDeclaration | ( | ) |
Definition at line 28 of file DWARFAbbreviationDeclaration.cpp.
References clear().
|
inline |
Definition at line 64 of file DWARFAbbreviationDeclaration.h.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), and llvm::SmallVectorTemplateCommon< T, typename >::end().
| void DWARFAbbreviationDeclaration::dump | ( | raw_ostream & | OS | ) | const |
Definition at line 118 of file DWARFAbbreviationDeclaration.cpp.
References llvm::dwarf::AttributeString(), llvm::format(), llvm::dwarf::FormEncodingString(), llvm::dwarf::getTag(), and llvm::dwarf::TagString().
| bool DWARFAbbreviationDeclaration::extract | ( | DataExtractor | Data, |
| uint32_t * | OffsetPtr | ||
| ) |
Definition at line 33 of file DWARFAbbreviationDeclaration.cpp.
References A, clear(), llvm::dwarf::DW_CHILDREN_yes, F, llvm::DWARFFormValue::getFixedByteSize(), llvm::DataExtractor::getSLEB128(), llvm::DataExtractor::getU8(), llvm::DataExtractor::getULEB128(), Offset, and llvm::Optional< T >::reset().
Referenced by llvm::DWARFAbbreviationDeclarationSet::extract().
| Optional< uint32_t > DWARFAbbreviationDeclaration::findAttributeIndex | ( | dwarf::Attribute | attr | ) | const |
Get the index of the specified attribute.
Searches the this abbreviation declaration for the index of the specified attribute.
| attr | DWARF attribute to search for. |
Definition at line 147 of file DWARFAbbreviationDeclaration.cpp.
References i, and llvm::None.
| Optional< DWARFFormValue > DWARFAbbreviationDeclaration::getAttributeValue | ( | const uint32_t | DIEOffset, |
| const dwarf::Attribute | Attr, | ||
| const DWARFUnit & | U | ||
| ) | const |
Extract a DWARF form value from a DIE specified by DIE offset.
Extract an attribute value for a DWARFUnit given the DIE offset and the attribute.
| DIEOffset | the DIE offset that points to the ULEB128 abbreviation code in the .debug_info data. |
| Attr | DWARF attribute to search for. |
| U | the DWARFUnit the contains the DIE. |
Definition at line 155 of file DWARFAbbreviationDeclaration.cpp.
References llvm::DWARFFormValue::extractValue(), llvm::DWARFUnit::getDebugInfoExtractor(), llvm::None, Offset, llvm::DWARFFormValue::setSValue(), and llvm::DWARFFormValue::skipValue().
|
inline |
Definition at line 57 of file DWARFAbbreviationDeclaration.h.
Referenced by llvm::DWARFAbbreviationDeclarationSet::extract().
| Optional< size_t > DWARFAbbreviationDeclaration::getFixedAttributesByteSize | ( | const DWARFUnit & | U | ) | const |
Definition at line 214 of file DWARFAbbreviationDeclaration.cpp.
References llvm::None.
|
inline |
Definition at line 68 of file DWARFAbbreviationDeclaration.h.
References llvm::SmallVectorTemplateCommon< T, typename >::size().
|
inline |
Definition at line 58 of file DWARFAbbreviationDeclaration.h.
Referenced by llvm::DWARFDebugInfoEntry::getTag().
|
inline |
Definition at line 59 of file DWARFAbbreviationDeclaration.h.
Referenced by llvm::DWARFDebugInfoEntry::hasChildren().
1.8.6