LLVM
8.0.1
|
DWARF v5-specific implementation of an Accelerator Entry. More...
#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
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< dwarf::Tag > | getTag () 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< uint64_t > | getCUIndex () const |
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. More... | |
dwarf::Tag | tag () const |
.debug_names-specific getter, which always succeeds (DWARF v5 index entries always have a tag). More... | |
Optional< uint64_t > | getDIEUnitOffset () const |
Returns the Offset of the DIE within the containing CU or TU. More... | |
const Abbrev & | getAbbrev () const |
Return the Abbreviation that can be used to interpret the raw values of this Accelerator Entry. More... | |
Optional< DWARFFormValue > | lookup (dwarf::Index Index) const |
Returns the value of the Index Attribute in this Accelerator Entry, if the Entry contains such Attribute. More... | |
void | dump (ScopedPrinter &W) const |
Public Member Functions inherited from llvm::DWARFAcceleratorTable::Entry | |
ArrayRef< DWARFFormValue > | getValues () const |
Returns the raw values of fields in the Accelerator Entry. More... | |
Friends | |
class | NameIndex |
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 |
DWARF v5-specific implementation of an Accelerator Entry.
Definition at line 281 of file DWARFAcceleratorTable.h.
void DWARFDebugNames::Entry::dump | ( | ScopedPrinter & | W | ) | const |
Definition at line 564 of file DWARFAcceleratorTable.cpp.
References assert(), llvm::DWARFDebugNames::Abbrev::Attributes, llvm::DWARFDebugNames::Abbrev::Code, llvm::AppleAcceleratorTable::dump(), llvm::formatv(), llvm::ScopedPrinter::getOStream(), llvm::DWARFDebugNames::SentinelError::ID, llvm::ScopedPrinter::printHex(), llvm::ScopedPrinter::startLine(), llvm::DWARFDebugNames::Abbrev::Tag, and llvm::zip_first().
Return the Abbreviation that can be used to interpret the raw values of this Accelerator Entry.
Definition at line 310 of file DWARFAcceleratorTable.h.
References llvm::DWARFAcceleratorTable::dump(), lookup(), and llvm::RISCVFenceField::W.
Optional< uint64_t > DWARFDebugNames::Entry::getCUIndex | ( | ) | const |
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.
Definition at line 547 of file DWARFAcceleratorTable.cpp.
References llvm::DWARFDebugNames::NameIndex::getCUCount(), lookup(), and llvm::None.
|
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 557 of file DWARFAcceleratorTable.cpp.
References llvm::DWARFDebugNames::NameIndex::getCUCount(), llvm::DWARFDebugNames::NameIndex::getCUOffset(), and llvm::None.
Optional< uint64_t > DWARFDebugNames::Entry::getDIEUnitOffset | ( | ) | const |
Returns the Offset of the DIE within the containing CU or TU.
Definition at line 541 of file DWARFAcceleratorTable.cpp.
References lookup(), and llvm::None.
|
inlineoverridevirtual |
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 289 of file DWARFAcceleratorTable.h.
Optional< DWARFFormValue > DWARFDebugNames::Entry::lookup | ( | dwarf::Index | Index | ) | const |
Returns the value of the Index Attribute in this Accelerator Entry, if the Entry contains such Attribute.
Definition at line 532 of file DWARFAcceleratorTable.cpp.
References assert(), llvm::DWARFDebugNames::Abbrev::Attributes, llvm::None, and llvm::zip_first().
|
inline |
.debug_names-specific getter, which always succeeds (DWARF v5 index entries always have a tag).
Definition at line 303 of file DWARFAcceleratorTable.h.
References llvm::DWARFDebugNames::Abbrev::Tag.
|
friend |
Definition at line 318 of file DWARFAcceleratorTable.h.
|
friend |
Definition at line 319 of file DWARFAcceleratorTable.h.