class DWARFDebugNames::Entry

Declaration

class DWARFDebugNames::Entry : public Entry { /* full declaration omitted */ };

Description

DWARF v5-specific implementation of an Accelerator Entry.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:283

Inherits from: DWARFAcceleratorTable::Entry

Member Variables

private const llvm::DWARFDebugNames::NameIndex* NameIdx
private const llvm::DWARFDebugNames::Abbrev* Abbr

Inherited from DWARFAcceleratorTable::Entry:

protected Values

Method Overview

  • private Entry(const llvm::DWARFDebugNames::NameIndex & NameIdx, const llvm::DWARFDebugNames::Abbrev & Abbr)
  • public void dump(llvm::ScopedPrinter & W) const
  • public const llvm::DWARFDebugNames::Abbrev & getAbbrev() const
  • public Optional<uint64_t> getCUIndex() const
  • public Optional<uint64_t> getCUOffset() const
  • public Optional<uint64_t> getDIEUnitOffset() const
  • public Optional<dwarf::Tag> getTag() const
  • public Optional<llvm::DWARFFormValue> lookup(dwarf::Index Index) const
  • public dwarf::Tag tag() const

Inherited from DWARFAcceleratorTable::Entry:

Methods

Entry(const llvm::DWARFDebugNames::NameIndex&
          NameIdx,
      const llvm::DWARFDebugNames::Abbrev& Abbr)

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:287

Parameters

const llvm::DWARFDebugNames::NameIndex& NameIdx
const llvm::DWARFDebugNames::Abbrev& Abbr

void dump(llvm::ScopedPrinter& W) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:318

Parameters

llvm::ScopedPrinter& W

const llvm::DWARFDebugNames::Abbrev& getAbbrev()
    const

Description

Return the Abbreviation that can be used to interpret the raw values of this Accelerator Entry.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:312

Optional<uint64_t> getCUIndex() const

Description

Returns the Index into the Compilation Unit list of the owning Name Index or None if this Accelerator Entry does not have an associated Compilation Unit. It is up to the user to verify that the returned Index is valid in the owning NameIndex (or use getCUOffset(), which will handle that check itself). Note that entries in NameIndexes which index just a single Compilation Unit are implicitly associated with that unit, so this function will return 0 even without an explicit DW_IDX_compile_unit attribute.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:301

Optional<uint64_t> getCUOffset() const

Description

Returns the Offset of the Compilation Unit associated with this Accelerator Entry or None if the Compilation Unit offset is not recorded in this Accelerator Entry.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:290

Optional<uint64_t> getDIEUnitOffset() const

Description

Returns the Offset of the DIE within the containing CU or TU.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:308

Optional<dwarf::Tag> getTag() const

Description

Returns the Tag of the Debug Info Entry associated with this Accelerator Entry or None if the Tag is not recorded in this Accelerator Entry.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:291

Optional<llvm::DWARFFormValue> lookup(
    dwarf::Index Index) const

Description

Returns the value of the Index Attribute in this Accelerator Entry, if the Entry contains such Attribute.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:316

Parameters

dwarf::Index Index

dwarf::Tag tag() const

Description

.debug_names-specific getter, which always succeeds (DWARF v5 index entries always have a tag).

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:305