LLVM  8.0.1
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]
Collaboration diagram for llvm::AppleAcceleratorTable::Entry:
Collaboration graph
[legend]

Public Member Functions

Optional< uint64_t > getCUOffset () const override
 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. More...
 
Optional< uint64_t > getDIESectionOffset () const
 Returns the Section Offset of the Debug Info Entry associated with this Accelerator Entry or None if the DIE offset is not recorded in this Accelerator Entry. More...
 
Optional< dwarf::TaggetTag () const override
 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. More...
 
Optional< DWARFFormValuelookup (HeaderData::AtomType Atom) const
 Returns the value of the Atom in this Accelerator Entry, if the Entry contains such Atom. More...
 
- Public Member Functions inherited from llvm::DWARFAcceleratorTable::Entry
ArrayRef< DWARFFormValuegetValues () const
 Returns the raw values of fields in the Accelerator Entry. More...
 

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 117 of file DWARFAcceleratorTable.h.

Member Function Documentation

◆ getCUOffset()

Optional< uint64_t > AppleAcceleratorTable::Entry::getCUOffset ( ) const
overridevirtual

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.

Implements llvm::DWARFAcceleratorTable::Entry.

Definition at line 292 of file DWARFAcceleratorTable.cpp.

References llvm::dwarf::DW_ATOM_cu_offset, and lookup().

◆ getDIESectionOffset()

Optional< uint64_t > AppleAcceleratorTable::Entry::getDIESectionOffset ( ) const

Returns the Section Offset of the Debug Info Entry associated with this Accelerator Entry or None 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 288 of file DWARFAcceleratorTable.cpp.

References llvm::dwarf::DW_ATOM_die_offset, and lookup().

◆ getTag()

Optional< dwarf::Tag > AppleAcceleratorTable::Entry::getTag ( ) const
overridevirtual

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.

Implements llvm::DWARFAcceleratorTable::Entry.

Definition at line 296 of file DWARFAcceleratorTable.cpp.

References llvm::dwarf::DW_ATOM_die_tag, llvm::DWARFFormValue::getAsUnsignedConstant(), lookup(), llvm::None, and llvm::Tag.

◆ lookup()

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 278 of file DWARFAcceleratorTable.cpp.

References assert(), llvm::None, and llvm::zip_first().

Friends And Related Function Documentation

◆ AppleAcceleratorTable

friend class AppleAcceleratorTable
friend

Definition at line 140 of file DWARFAcceleratorTable.h.

◆ ValueIterator

friend class ValueIterator
friend

Definition at line 141 of file DWARFAcceleratorTable.h.


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