class DWARFAbbreviationDeclaration

Declaration

class DWARFAbbreviationDeclaration { /* full declaration omitted */ };

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:27

Method Overview

Methods

DWARFAbbreviationDeclaration()

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:86

llvm::DWARFAbbreviationDeclaration::
    attr_iterator_range
    attributes() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:96

void dump(llvm::raw_ostream& OS) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:138

Parameters

llvm::raw_ostream& OS

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

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

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

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

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:88

uint8_t getCodeByteSize() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:89

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

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:100

Parameters

uint32_t idx

size_t getNumAttributes() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:105

dwarf::Tag getTag() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:90

bool hasChildren() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h:91