LLVM 20.0.0git
Public Member Functions | Friends | List of all members
llvm::AppleAcceleratorTable::Entry Class Referencefinal

Apple-specific implementation of an Accelerator Entry. More...

#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"

Inheritance diagram for llvm::AppleAcceleratorTable::Entry:
Inheritance graph
[legend]

Public Member Functions

std::optional< uint64_tgetCUOffset () 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_tgetDIESectionOffset () 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::TaggetTag () 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< DWARFFormValuelookup (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_tgetCUOffset () 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_tgetLocalTUOffset () 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_tgetForeignTUTypeSignature () 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::TaggetTag () 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< DWARFFormValuegetValues () 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
 
Entryoperator= (const Entry &)=default
 
Entryoperator= (Entry &&)=default
 
 ~Entry ()=default
 
- Protected Attributes inherited from llvm::DWARFAcceleratorTable::Entry
SmallVector< DWARFFormValue, 3 > Values
 

Detailed Description

Apple-specific implementation of an Accelerator Entry.

Definition at line 213 of file DWARFAcceleratorTable.h.

Member Function Documentation

◆ getCUOffset()

std::optional< uint64_t > AppleAcceleratorTable::Entry::getCUOffset ( ) const
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().

◆ getDIESectionOffset()

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().

◆ getTag()

std::optional< dwarf::Tag > AppleAcceleratorTable::Entry::getTag ( ) const
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, and lookup().

◆ lookup()

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().

Friends And Related Function Documentation

◆ AppleAcceleratorTable

friend class AppleAcceleratorTable
friend

Definition at line 234 of file DWARFAcceleratorTable.h.

◆ ValueIterator

friend class ValueIterator
friend

Definition at line 235 of file DWARFAcceleratorTable.h.


The documentation for this class was generated from the following files: