LLVM  8.0.1
Public Member Functions | Friends | List of all members
llvm::DWARFDebugNames::NameIndex Class Reference

Represents a single accelerator table within the Dwarf 5 .debug_names section. More...

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

Public Member Functions

 NameIndex (const DWARFDebugNames &Section, uint32_t Base)
 
uint32_t getCUOffset (uint32_t CU) const
 Reads offset of compilation unit CU. CU is 0-based. More...
 
uint32_t getCUCount () const
 
uint32_t getLocalTUOffset (uint32_t TU) const
 Reads offset of local type unit TU, TU is 0-based. More...
 
uint32_t getLocalTUCount () const
 
uint64_t getForeignTUSignature (uint32_t TU) const
 Reads signature of foreign type unit TU. TU is 0-based. More...
 
uint32_t getForeignTUCount () const
 
uint32_t getBucketArrayEntry (uint32_t Bucket) const
 Reads an entry in the Bucket Array for the given Bucket. More...
 
uint32_t getBucketCount () const
 
uint32_t getHashArrayEntry (uint32_t Index) const
 Reads an entry in the Hash Array for the given Index. More...
 
NameTableEntry getNameTableEntry (uint32_t Index) const
 Reads an entry in the Name Table for the given Index. More...
 
uint32_t getNameCount () const
 
const DenseSet< Abbrev, AbbrevMapInfo > & getAbbrevs () const
 
Expected< EntrygetEntry (uint32_t *Offset) const
 
iterator_range< ValueIteratorequal_range (StringRef Key) const
 Look up all entries in this Name Index matching Key. More...
 
NameIterator begin () const
 
NameIterator end () const
 
llvm::Error extract ()
 
uint32_t getUnitOffset () const
 
uint32_t getNextUnitOffset () const
 
void dump (ScopedPrinter &W) const
 

Friends

class DWARFDebugNames
 

Detailed Description

Represents a single accelerator table within the Dwarf 5 .debug_names section.

Definition at line 386 of file DWARFAcceleratorTable.h.

Constructor & Destructor Documentation

◆ NameIndex()

llvm::DWARFDebugNames::NameIndex::NameIndex ( const DWARFDebugNames Section,
uint32_t  Base 
)
inline

Member Function Documentation

◆ begin()

NameIterator llvm::DWARFDebugNames::NameIndex::begin ( ) const
inline

Definition at line 460 of file DWARFAcceleratorTable.h.

◆ dump()

LLVM_DUMP_METHOD void DWARFDebugNames::NameIndex::dump ( ScopedPrinter W) const

◆ end()

NameIterator llvm::DWARFDebugNames::NameIndex::end ( ) const
inline

Definition at line 461 of file DWARFAcceleratorTable.h.

References llvm::DWARFAcceleratorTable::extract().

◆ equal_range()

iterator_range< DWARFDebugNames::ValueIterator > DWARFDebugNames::NameIndex::equal_range ( StringRef  Key) const

Look up all entries in this Name Index matching Key.

Definition at line 770 of file DWARFAcceleratorTable.cpp.

References llvm::make_range(), and llvm::AppleAcceleratorTable::ValueIterator::ValueIterator().

Referenced by isVariableIndexable().

◆ extract()

Error DWARFDebugNames::NameIndex::extract ( )

◆ getAbbrevs()

const DenseSet<Abbrev, AbbrevMapInfo>& llvm::DWARFDebugNames::NameIndex::getAbbrevs ( ) const
inline

Definition at line 451 of file DWARFAcceleratorTable.h.

◆ getBucketArrayEntry()

uint32_t DWARFDebugNames::NameIndex::getBucketArrayEntry ( uint32_t  Bucket) const

Reads an entry in the Bucket Array for the given Bucket.

The returned value is a (1-based) index into the Names, StringOffsets and EntryOffsets arrays. The input Bucket index is 0-based.

Definition at line 638 of file DWARFAcceleratorTable.cpp.

References assert(), and llvm::ARMBuildAttrs::Section.

◆ getBucketCount()

uint32_t llvm::DWARFDebugNames::NameIndex::getBucketCount ( ) const
inline

Definition at line 437 of file DWARFAcceleratorTable.h.

◆ getCUCount()

uint32_t llvm::DWARFDebugNames::NameIndex::getCUCount ( ) const
inline

◆ getCUOffset()

uint32_t DWARFDebugNames::NameIndex::getCUOffset ( uint32_t  CU) const

Reads offset of compilation unit CU. CU is 0-based.

Definition at line 580 of file DWARFAcceleratorTable.cpp.

References assert(), and llvm::ARMBuildAttrs::Section.

Referenced by llvm::DWARFDebugNames::Entry::getCUOffset(), and getNames().

◆ getEntry()

Expected< DWARFDebugNames::Entry > DWARFDebugNames::NameIndex::getEntry ( uint32_t Offset) const

◆ getForeignTUCount()

uint32_t llvm::DWARFDebugNames::NameIndex::getForeignTUCount ( ) const
inline

Definition at line 431 of file DWARFAcceleratorTable.h.

Referenced by getNames().

◆ getForeignTUSignature()

uint64_t DWARFDebugNames::NameIndex::getForeignTUSignature ( uint32_t  TU) const

Reads signature of foreign type unit TU. TU is 0-based.

Definition at line 592 of file DWARFAcceleratorTable.cpp.

References assert(), and llvm::ARMBuildAttrs::Section.

◆ getHashArrayEntry()

uint32_t DWARFDebugNames::NameIndex::getHashArrayEntry ( uint32_t  Index) const

◆ getLocalTUCount()

uint32_t llvm::DWARFDebugNames::NameIndex::getLocalTUCount ( ) const
inline

Definition at line 427 of file DWARFAcceleratorTable.h.

Referenced by getNames().

◆ getLocalTUOffset()

uint32_t DWARFDebugNames::NameIndex::getLocalTUOffset ( uint32_t  TU) const

Reads offset of local type unit TU, TU is 0-based.

Definition at line 586 of file DWARFAcceleratorTable.cpp.

References assert(), and llvm::ARMBuildAttrs::Section.

◆ getNameCount()

uint32_t llvm::DWARFDebugNames::NameIndex::getNameCount ( ) const
inline

Definition at line 449 of file DWARFAcceleratorTable.h.

◆ getNameTableEntry()

DWARFDebugNames::NameTableEntry DWARFDebugNames::NameIndex::getNameTableEntry ( uint32_t  Index) const

Reads an entry in the Name Table for the given Index.

The Name Table consists of two arrays – String Offsets and Entry Offsets. The returned offsets are relative to the starts of respective sections. Input Index is 1-based.

Definition at line 625 of file DWARFAcceleratorTable.cpp.

References assert(), and llvm::ARMBuildAttrs::Section.

Referenced by llvm::DWARFDebugNames::NameIterator::operator*().

◆ getNextUnitOffset()

uint32_t llvm::DWARFDebugNames::NameIndex::getNextUnitOffset ( ) const
inline

◆ getUnitOffset()

uint32_t llvm::DWARFDebugNames::NameIndex::getUnitOffset ( ) const
inline

Definition at line 464 of file DWARFAcceleratorTable.h.

Referenced by getNames(), and isVariableIndexable().

Friends And Related Function Documentation

◆ DWARFDebugNames

friend class DWARFDebugNames
friend

Definition at line 468 of file DWARFAcceleratorTable.h.


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