LLVM 20.0.0git
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
llvm::DWARFAcceleratorTable::Entry Class Referenceabstract

An abstract class representing a single entry in the accelerator tables. More...

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

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

Public Member Functions

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.
 

Protected Member Functions

 Entry ()=default
 
 Entry (const Entry &)=default
 
 Entry (Entry &&)=default
 
Entryoperator= (const Entry &)=default
 
Entryoperator= (Entry &&)=default
 
 ~Entry ()=default
 

Protected Attributes

SmallVector< DWARFFormValue, 3 > Values
 

Detailed Description

An abstract class representing a single entry in the accelerator tables.

Definition at line 39 of file DWARFAcceleratorTable.h.

Constructor & Destructor Documentation

◆ Entry() [1/3]

llvm::DWARFAcceleratorTable::Entry::Entry ( )
protecteddefault

◆ Entry() [2/3]

llvm::DWARFAcceleratorTable::Entry::Entry ( const Entry )
protecteddefault

◆ Entry() [3/3]

llvm::DWARFAcceleratorTable::Entry::Entry ( Entry &&  )
protecteddefault

◆ ~Entry()

llvm::DWARFAcceleratorTable::Entry::~Entry ( )
protecteddefault

Member Function Documentation

◆ getCUOffset()

virtual std::optional< uint64_t > llvm::DWARFAcceleratorTable::Entry::getCUOffset ( ) const
pure virtual

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.

Implemented in llvm::AppleAcceleratorTable::Entry, and llvm::DWARFDebugNames::Entry.

◆ getForeignTUTypeSignature()

virtual std::optional< uint64_t > llvm::DWARFAcceleratorTable::Entry::getForeignTUTypeSignature ( ) const
inlinevirtual

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.

Reimplemented in llvm::DWARFDebugNames::Entry.

Definition at line 70 of file DWARFAcceleratorTable.h.

◆ getLocalTUOffset()

virtual std::optional< uint64_t > llvm::DWARFAcceleratorTable::Entry::getLocalTUOffset ( ) const
inlinevirtual

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.

Reimplemented in llvm::DWARFDebugNames::Entry.

Definition at line 62 of file DWARFAcceleratorTable.h.

◆ getTag()

virtual std::optional< dwarf::Tag > llvm::DWARFAcceleratorTable::Entry::getTag ( ) const
pure virtual

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.

Implemented in llvm::AppleAcceleratorTable::Entry, and llvm::DWARFDebugNames::Entry.

◆ getValues()

ArrayRef< DWARFFormValue > llvm::DWARFAcceleratorTable::Entry::getValues ( ) const
inline

Returns the raw values of fields in the Accelerator Entry.

In general, these can only be interpreted with the help of the metadata in the owning Accelerator Table.

Definition at line 83 of file DWARFAcceleratorTable.h.

References Values.

◆ operator=() [1/2]

Entry & llvm::DWARFAcceleratorTable::Entry::operator= ( const Entry )
protecteddefault

◆ operator=() [2/2]

Entry & llvm::DWARFAcceleratorTable::Entry::operator= ( Entry &&  )
protecteddefault

Member Data Documentation

◆ Values

SmallVector<DWARFFormValue, 3> llvm::DWARFAcceleratorTable::Entry::Values
protected

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