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:280

Inherits from: DWARFAcceleratorTable::Entry

Member Variables

Inherited from DWARFAcceleratorTable::Entry:

protected Values

Method Overview

  • 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

void dump(llvm::ScopedPrinter& W) const

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

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:309

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:298

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:287

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:305

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:288

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:313

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:302