class DWARFDebugNames::NameIndex

Declaration

class DWARFDebugNames::NameIndex { /* full declaration omitted */ };

Description

Represents a single accelerator table within the DWARF v5 .debug_names section.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:388

Member Variables

private DenseSet<llvm::DWARFDebugNames::Abbrev, llvm::DWARFDebugNames::AbbrevMapInfo> Abbrevs
private struct Header Hdr
private const llvm::DWARFDebugNames& Section
private uint64_t Base
private uint64_t CUsBase
private uint64_t BucketsBase
private uint64_t HashesBase
private uint64_t StringOffsetsBase
private uint64_t EntryOffsetsBase
private uint64_t EntriesBase

Method Overview

Methods

NameIndex(const llvm::DWARFDebugNames& Section,
          uint64_t Base)

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:420

Parameters

const llvm::DWARFDebugNames& Section
uint64_t Base

llvm::DWARFDebugNames::NameIterator begin() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:462

void dump(llvm::ScopedPrinter& W) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:471

Parameters

llvm::ScopedPrinter& W

void dumpAbbreviations(
    llvm::ScopedPrinter& W) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:406

Parameters

llvm::ScopedPrinter& W

void dumpBucket(llvm::ScopedPrinter& W,
                uint32_t Bucket) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:410

Parameters

llvm::ScopedPrinter& W
uint32_t Bucket

void dumpCUs(llvm::ScopedPrinter& W) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:403

Parameters

llvm::ScopedPrinter& W

bool dumpEntry(llvm::ScopedPrinter& W,
               uint64_t* Offset) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:407

Parameters

llvm::ScopedPrinter& W
uint64_t* Offset

void dumpForeignTUs(llvm::ScopedPrinter& W) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:405

Parameters

llvm::ScopedPrinter& W

void dumpLocalTUs(llvm::ScopedPrinter& W) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:404

Parameters

llvm::ScopedPrinter& W

void dumpName(
    llvm::ScopedPrinter& W,
    const llvm::DWARFDebugNames::NameTableEntry&
        NTE,
    Optional<uint32_t> Hash) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:408

Parameters

llvm::ScopedPrinter& W
const llvm::DWARFDebugNames::NameTableEntry& NTE
Optional<uint32_t> Hash

llvm::DWARFDebugNames::NameIterator end() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:463

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

Description

Look up all entries in this Name Index matching \c Key.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:460

Parameters

llvm::StringRef Key

llvm::Error extract()

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:465

Expected<llvm::DWARFDebugNames::Abbrev>
extractAbbrev(uint64_t* Offset)

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:417

Parameters

uint64_t* Offset

Expected<llvm::DWARFDebugNames::AttributeEncoding>
extractAttributeEncoding(uint64_t* Offset)

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:412

Parameters

uint64_t* Offset

Expected<std::vector<AttributeEncoding>>
extractAttributeEncodings(uint64_t* Offset)

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:415

Parameters

uint64_t* Offset

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

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:453

uint32_t getBucketArrayEntry(
    uint32_t Bucket) const

Description

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.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:438

Parameters

uint32_t Bucket

uint32_t getBucketCount() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:439

uint32_t getCUCount() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:425

uint64_t getCUOffset(uint32_t CU) const

Description

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

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:424

Parameters

uint32_t CU

Expected<llvm::DWARFDebugNames::Entry> getEntry(
    uint64_t* Offset) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:457

Parameters

uint64_t* Offset

uint32_t getForeignTUCount() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:433

uint64_t getForeignTUSignature(uint32_t TU) const

Description

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

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:432

Parameters

uint32_t TU

uint32_t getHashArrayEntry(uint32_t Index) const

Description

Reads an entry in the Hash Array for the given Index. The input Index is 1-based.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:443

Parameters

uint32_t Index

uint32_t getLocalTUCount() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:429

uint64_t getLocalTUOffset(uint32_t TU) const

Description

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

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:428

Parameters

uint32_t TU

uint32_t getNameCount() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:451

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

Description

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.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:449

Parameters

uint32_t Index

uint64_t getNextUnitOffset() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:467

uint64_t getUnitOffset() const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:466