LLVM 20.0.0git
|
Apple-specific implementation of an Accelerator Entry. More...
#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
Public Member Functions | |
std::optional< uint64_t > | getCUOffset () const override |
Returns the Offset of the Compilation Unit associated with this Accelerator Entry or std::nullopt if the Compilation Unit offset is not recorded in this Accelerator Entry. | |
std::optional< uint64_t > | getDIESectionOffset () const |
Returns the Section Offset of the Debug Info Entry associated with this Accelerator Entry or std::nullopt if the DIE offset is not recorded in this Accelerator Entry. | |
std::optional< dwarf::Tag > | getTag () const override |
Returns the Tag of the Debug Info Entry associated with this Accelerator Entry or std::nullopt if the Tag is not recorded in this Accelerator Entry. | |
std::optional< DWARFFormValue > | lookup (HeaderData::AtomType Atom) const |
Returns the value of the Atom in this Accelerator Entry, if the Entry contains such Atom. | |
Public Member Functions inherited from llvm::DWARFAcceleratorTable::Entry | |
virtual std::optional< uint64_t > | getCUOffset () const =0 |
Returns the Offset of the Compilation Unit associated with this Accelerator Entry or std::nullopt if the Compilation Unit offset is not recorded in this Accelerator Entry. | |
virtual std::optional< uint64_t > | getLocalTUOffset () const |
Returns the Offset of the Type Unit associated with this Accelerator Entry or std::nullopt if the Type Unit offset is not recorded in this Accelerator Entry. | |
virtual std::optional< uint64_t > | getForeignTUTypeSignature () const |
Returns the type signature of the Type Unit associated with this Accelerator Entry or std::nullopt if the Type Unit offset is not recorded in this Accelerator Entry. | |
virtual std::optional< dwarf::Tag > | getTag () const =0 |
Returns the Tag of the Debug Info Entry associated with this Accelerator Entry or std::nullopt if the Tag is not recorded in this Accelerator Entry. | |
ArrayRef< DWARFFormValue > | getValues () const |
Returns the raw values of fields in the Accelerator Entry. | |
Friends | |
class | AppleAcceleratorTable |
class | ValueIterator |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::DWARFAcceleratorTable::Entry | |
Entry ()=default | |
Entry (const Entry &)=default | |
Entry (Entry &&)=default | |
Entry & | operator= (const Entry &)=default |
Entry & | operator= (Entry &&)=default |
~Entry ()=default | |
Protected Attributes inherited from llvm::DWARFAcceleratorTable::Entry | |
SmallVector< DWARFFormValue, 3 > | Values |
Apple-specific implementation of an Accelerator Entry.
Definition at line 213 of file DWARFAcceleratorTable.h.
|
overridevirtual |
Returns the Offset of the Compilation Unit associated with this Accelerator Entry or std::nullopt if the Compilation Unit offset is not recorded in this Accelerator Entry.
Implements llvm::DWARFAcceleratorTable::Entry.
Definition at line 295 of file DWARFAcceleratorTable.cpp.
References llvm::dwarf::DW_ATOM_cu_offset, and lookup().
std::optional< uint64_t > AppleAcceleratorTable::Entry::getDIESectionOffset | ( | ) | const |
Returns the Section Offset of the Debug Info Entry associated with this Accelerator Entry or std::nullopt if the DIE offset is not recorded in this Accelerator Entry.
The returned offset is relative to the start of the Section containing the DIE.
Definition at line 291 of file DWARFAcceleratorTable.cpp.
References llvm::dwarf::DW_ATOM_die_offset, and lookup().
|
overridevirtual |
Returns the Tag of the Debug Info Entry associated with this Accelerator Entry or std::nullopt if the Tag is not recorded in this Accelerator Entry.
Implements llvm::DWARFAcceleratorTable::Entry.
Definition at line 299 of file DWARFAcceleratorTable.cpp.
References llvm::dwarf::DW_ATOM_die_tag, lookup(), and llvm::Tag.
std::optional< DWARFFormValue > AppleAcceleratorTable::Entry::lookup | ( | HeaderData::AtomType | Atom | ) | const |
Returns the value of the Atom in this Accelerator Entry, if the Entry contains such Atom.
Definition at line 283 of file DWARFAcceleratorTable.cpp.
References llvm::zip_equal().
|
friend |
Definition at line 234 of file DWARFAcceleratorTable.h.
|
friend |
Definition at line 235 of file DWARFAcceleratorTable.h.