class DWARFAbbreviationDeclaration
Declaration
class DWARFAbbreviationDeclaration { /* full declaration omitted */ };
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:27
Method Overview
- public DWARFAbbreviationDeclaration()
- public llvm::DWARFAbbreviationDeclaration::attr_iterator_range attributes() const
- public void dump(llvm::raw_ostream & OS) const
- public bool extract(llvm::DataExtractor Data, uint64_t * OffsetPtr)
- public Optional<uint32_t> findAttributeIndex(dwarf::Attribute attr) const
- public dwarf::Attribute getAttrByIndex(uint32_t idx) const
- public Optional<llvm::DWARFFormValue> getAttributeValue(const uint64_t DIEOffset, const dwarf::Attribute Attr, const llvm::DWARFUnit & U) const
- public uint32_t getCode() const
- public uint8_t getCodeByteSize() const
- public Optional<size_t> getFixedAttributesByteSize(const llvm::DWARFUnit & U) const
- public dwarf::Form getFormByIndex(uint32_t idx) const
- public size_t getNumAttributes() const
- public dwarf::Tag getTag() const
- public bool hasChildren() const
Methods
¶DWARFAbbreviationDeclaration()
DWARFAbbreviationDeclaration()
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:86
¶llvm::DWARFAbbreviationDeclaration::
attr_iterator_range
attributes() const
llvm::DWARFAbbreviationDeclaration::
attr_iterator_range
attributes() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:96
¶void dump(llvm::raw_ostream& OS) const
void dump(llvm::raw_ostream& OS) const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:138
Parameters
¶bool extract(llvm::DataExtractor Data,
uint64_t* OffsetPtr)
bool extract(llvm::DataExtractor Data,
uint64_t* OffsetPtr)
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:137
Parameters
- llvm::DataExtractor Data
- uint64_t* OffsetPtr
¶Optional<uint32_t> findAttributeIndex(
dwarf::Attribute attr) const
Optional<uint32_t> findAttributeIndex(
dwarf::Attribute attr) const
Description
Get the index of the specified attribute. Searches the this abbreviation declaration for the index of the specified attribute.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:121
Parameters
- dwarf::Attribute attr
- DWARF attribute to search for.
Returns
Optional index of the attribute if found, None otherwise.
¶dwarf::Attribute getAttrByIndex(
uint32_t idx) const
dwarf::Attribute getAttrByIndex(
uint32_t idx) const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:109
Parameters
- uint32_t idx
¶Optional<llvm::DWARFFormValue> getAttributeValue(
const uint64_t DIEOffset,
const dwarf::Attribute Attr,
const llvm::DWARFUnit& U) const
Optional<llvm::DWARFFormValue> getAttributeValue(
const uint64_t DIEOffset,
const dwarf::Attribute Attr,
const llvm::DWARFUnit& U) const
Description
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.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:133
Parameters
- const uint64_t DIEOffset
- the DIE offset that points to the ULEB128 abbreviation code in the .debug_info data.
- const dwarf::Attribute Attr
- DWARF attribute to search for.
- const llvm::DWARFUnit& U
- the DWARFUnit the contains the DIE.
Returns
Optional DWARF form value if the attribute was extracted.
¶uint32_t getCode() const
uint32_t getCode() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:88
¶uint8_t getCodeByteSize() const
uint8_t getCodeByteSize() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:89
¶Optional<size_t> getFixedAttributesByteSize(
const llvm::DWARFUnit& U) const
Optional<size_t> getFixedAttributesByteSize(
const llvm::DWARFUnit& U) const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:143
Parameters
- const llvm::DWARFUnit& U
¶dwarf::Form getFormByIndex(uint32_t idx) const
dwarf::Form getFormByIndex(uint32_t idx) const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:100
Parameters
- uint32_t idx
¶size_t getNumAttributes() const
size_t getNumAttributes() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:105
¶dwarf::Tag getTag() const
dwarf::Tag getTag() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:90
¶bool hasChildren() const
bool hasChildren() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:91