LLVM 17.0.0git
|
Represents a single accelerator table within the DWARF v5 .debug_names section. More...
#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
Friends | |
class | DWARFDebugNames |
Represents a single accelerator table within the DWARF v5 .debug_names section.
Definition at line 389 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 421 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base.
|
inline |
Definition at line 463 of file DWARFAcceleratorTable.h.
LLVM_DUMP_METHOD void DWARFDebugNames::NameIndex::dump | ( | ScopedPrinter & | W | ) | const |
Definition at line 755 of file DWARFAcceleratorTable.cpp.
References llvm::sampleprof::Base, and llvm::Twine::utohexstr().
|
inline |
Definition at line 464 of file DWARFAcceleratorTable.h.
References getNameCount().
iterator_range< DWARFDebugNames::ValueIterator > DWARFDebugNames::NameIndex::equal_range | ( | StringRef | Key | ) | const |
Look up all entries in this Name Index matching Key
.
Definition at line 787 of file DWARFAcceleratorTable.cpp.
References llvm::make_range().
Error DWARFDebugNames::NameIndex::extract | ( | ) |
Definition at line 489 of file DWARFAcceleratorTable.cpp.
References llvm::sampleprof::Base, llvm::createStringError(), E, llvm::dwarf::getDwarfOffsetByteSize(), llvm::illegal_byte_sequence, llvm::invalid_argument, isSentinel(), llvm::DataExtractor::isValidOffsetForDataOfSize(), llvm::Offset, and llvm::Error::success().
Referenced by llvm::DWARFDebugNames::extract().
|
inline |
Definition at line 454 of file DWARFAcceleratorTable.h.
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 654 of file DWARFAcceleratorTable.cpp.
References assert().
|
inline |
Definition at line 440 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 426 of file DWARFAcceleratorTable.h.
Referenced by llvm::DWARFDebugNames::Entry::getCUIndex(), and llvm::DWARFDebugNames::Entry::getCUOffset().
Reads offset of compilation unit CU. CU is 0-based.
Definition at line 587 of file DWARFAcceleratorTable.cpp.
References assert(), llvm::dwarf::getDwarfOffsetByteSize(), and llvm::Offset.
Referenced by llvm::DWARFDebugNames::Entry::getCUOffset().
Expected< DWARFDebugNames::Entry > DWARFDebugNames::NameIndex::getEntry | ( | uint64_t * | Offset | ) | const |
Definition at line 611 of file DWARFAcceleratorTable.cpp.
References llvm::createStringError(), E, llvm::DataExtractor::getULEB128(), llvm::illegal_byte_sequence, llvm::invalid_argument, llvm::io_error, llvm::DataExtractor::isValidOffset(), llvm::Offset, and llvm::dwarf::FormParams::Version.
|
inline |
Definition at line 434 of file DWARFAcceleratorTable.h.
Reads signature of foreign type unit TU. TU is 0-based.
Definition at line 601 of file DWARFAcceleratorTable.cpp.
References assert(), llvm::dwarf::getDwarfOffsetByteSize(), and llvm::Offset.
Reads an entry in the Hash Array for the given Index.
The input Index is 1-based.
Definition at line 660 of file DWARFAcceleratorTable.cpp.
References assert().
|
inline |
Definition at line 430 of file DWARFAcceleratorTable.h.
Reads offset of local type unit TU, TU is 0-based.
Definition at line 594 of file DWARFAcceleratorTable.cpp.
References assert(), llvm::dwarf::getDwarfOffsetByteSize(), and llvm::Offset.
|
inline |
Definition at line 452 of file DWARFAcceleratorTable.h.
Referenced by end().
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 637 of file DWARFAcceleratorTable.cpp.
References assert(), and llvm::dwarf::getDwarfOffsetByteSize().
Referenced by llvm::DWARFDebugNames::NameIterator::operator*().
|
inline |
Definition at line 468 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base, and llvm::dwarf::getUnitLengthFieldByteSize().
Referenced by llvm::DWARFDebugNames::extract().
|
inline |
Definition at line 467 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base.
|
friend |
Definition at line 474 of file DWARFAcceleratorTable.h.