LLVM
8.0.1
|
.debug_names section consists of one or more units. More...
#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
Classes | |
struct | Abbrev |
Abbreviation describing the encoding of Name Index entries. More... | |
struct | AttributeEncoding |
Index attribute and its encoding. More... | |
class | Entry |
DWARF v5-specific implementation of an Accelerator Entry. More... | |
struct | Header |
Dwarf 5 Name Index header. More... | |
class | NameIndex |
Represents a single accelerator table within the Dwarf 5 .debug_names section. More... | |
class | NameIterator |
class | NameTableEntry |
A single entry in the Name Table (Dwarf 5 sect. More... | |
class | SentinelError |
Error returned by NameIndex::getEntry to report it has reached the end of the entry list. More... | |
class | ValueIterator |
Public Types | |
using | const_iterator = SmallVector< NameIndex, 0 >::const_iterator |
Public Member Functions | |
DWARFDebugNames (const DWARFDataExtractor &AccelSection, DataExtractor StringSection) | |
llvm::Error | extract () override |
void | dump (raw_ostream &OS) const override |
iterator_range< ValueIterator > | equal_range (StringRef Key) const |
Look up all entries in the accelerator table matching Key . More... | |
const_iterator | begin () const |
const_iterator | end () const |
const NameIndex * | getCUNameIndex (uint32_t CUOffset) |
Return the Name Index covering the compile unit at CUOffset, or nullptr if there is no Name Index covering that unit. More... | |
Public Member Functions inherited from llvm::DWARFAcceleratorTable | |
DWARFAcceleratorTable (const DWARFDataExtractor &AccelSection, DataExtractor StringSection) | |
virtual | ~DWARFAcceleratorTable () |
DWARFAcceleratorTable (const DWARFAcceleratorTable &)=delete | |
void | operator= (const DWARFAcceleratorTable &)=delete |
Additional Inherited Members | |
Protected Attributes inherited from llvm::DWARFAcceleratorTable | |
DWARFDataExtractor | AccelSection |
DataExtractor | StringSection |
.debug_names section consists of one or more units.
Each unit starts with a header, which is followed by a list of compilation units, local and foreign type units.
These may be followed by an (optional) hash lookup table, which consists of an array of buckets and hashes similar to the apple tables above. The only difference is that the hashes array is 1-based, and consequently an empty bucket is denoted by 0 and not UINT32_MAX.
Next is the name table, which consists of an array of names and array of entry offsets. This is different from the apple tables, which store names next to the actual entries.
The structure of the entries is described by an abbreviations table, which comes after the name table. Unlike the apple tables, which have a uniform entry structure described in the header, each .debug_names entry may have different index attributes (DW_IDX_???) attached to it.
The last segment consists of a list of entries, which is a 0-terminated list referenced by the name table and interpreted with the help of the abbreviation table.
Definition at line 225 of file DWARFAcceleratorTable.h.
Definition at line 589 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 579 of file DWARFAcceleratorTable.h.
References llvm::DWARFAcceleratorTable::dump(), and llvm::DWARFAcceleratorTable::extract().
|
inline |
Definition at line 590 of file DWARFAcceleratorTable.h.
References llvm::SmallVectorTemplateCommon< T >::begin().
|
overridevirtual |
Implements llvm::DWARFAcceleratorTable.
Definition at line 774 of file DWARFAcceleratorTable.cpp.
References llvm::caseFoldingDjbHash(), llvm::consumeError(), llvm::DWARFDebugNames::NameTableEntry::getEntryOffset(), llvm::DWARFDebugNames::NameTableEntry::getString(), llvm::None, and llvm::RISCVFenceField::W.
Referenced by llvm::DWARFContext::dump().
|
inline |
Definition at line 591 of file DWARFAcceleratorTable.h.
References llvm::SmallVectorTemplateCommon< T >::end().
iterator_range< DWARFDebugNames::ValueIterator > DWARFDebugNames::equal_range | ( | StringRef | Key | ) | const |
Look up all entries in the accelerator table matching Key
.
Definition at line 872 of file DWARFAcceleratorTable.cpp.
References llvm::make_range(), and llvm::DWARFDebugNames::ValueIterator::ValueIterator().
|
overridevirtual |
Implements llvm::DWARFAcceleratorTable.
Definition at line 757 of file DWARFAcceleratorTable.cpp.
References llvm::DWARFAcceleratorTable::AccelSection, E, llvm::DWARFDebugNames::NameIndex::extract(), llvm::DWARFDebugNames::NameIndex::getNextUnitOffset(), llvm::DataExtractor::isValidOffset(), and llvm::Error::success().
const DWARFDebugNames::NameIndex * DWARFDebugNames::getCUNameIndex | ( | uint32_t | CUOffset | ) |
Return the Name Index covering the compile unit at CUOffset, or nullptr if there is no Name Index covering that unit.
Definition at line 879 of file DWARFAcceleratorTable.cpp.