LLVM
15.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 388 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 420 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 462 of file DWARFAcceleratorTable.h.
LLVM_DUMP_METHOD void DWARFDebugNames::NameIndex::dump | ( | ScopedPrinter & | W | ) | const |
Definition at line 754 of file DWARFAcceleratorTable.cpp.
References llvm::sampleprof::Base, llvm::None, llvm::Twine::utohexstr(), and llvm::RISCVFenceField::W.
|
inline |
Definition at line 463 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 786 of file DWARFAcceleratorTable.cpp.
References llvm::make_range().
Error DWARFDebugNames::NameIndex::extract | ( | ) |
Definition at line 488 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(), move, and llvm::Error::success().
Referenced by llvm::DWARFDebugNames::extract().
|
inline |
Definition at line 453 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 653 of file DWARFAcceleratorTable.cpp.
References assert().
|
inline |
Definition at line 439 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 425 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 586 of file DWARFAcceleratorTable.cpp.
References assert(), and llvm::dwarf::getDwarfOffsetByteSize().
Referenced by llvm::DWARFDebugNames::Entry::getCUOffset().
Expected< DWARFDebugNames::Entry > DWARFDebugNames::NameIndex::getEntry | ( | uint64_t * | Offset | ) | const |
Definition at line 610 of file DWARFAcceleratorTable.cpp.
References llvm::createStringError(), E, llvm::DataExtractor::getULEB128(), llvm::illegal_byte_sequence, llvm::invalid_argument, llvm::io_error, llvm::DataExtractor::isValidOffset(), move, and llvm::dwarf::FormParams::Version.
|
inline |
Definition at line 433 of file DWARFAcceleratorTable.h.
Reads signature of foreign type unit TU. TU is 0-based.
Definition at line 600 of file DWARFAcceleratorTable.cpp.
References assert(), and llvm::dwarf::getDwarfOffsetByteSize().
Reads an entry in the Hash Array for the given Index.
The input Index is 1-based.
Definition at line 659 of file DWARFAcceleratorTable.cpp.
References assert().
|
inline |
Definition at line 429 of file DWARFAcceleratorTable.h.
Reads offset of local type unit TU, TU is 0-based.
Definition at line 593 of file DWARFAcceleratorTable.cpp.
References assert(), and llvm::dwarf::getDwarfOffsetByteSize().
|
inline |
Definition at line 451 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 636 of file DWARFAcceleratorTable.cpp.
References assert(), and llvm::dwarf::getDwarfOffsetByteSize().
Referenced by llvm::DWARFDebugNames::NameIterator::operator*().
|
inline |
Definition at line 467 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base, and llvm::dwarf::getUnitLengthFieldByteSize().
Referenced by llvm::DWARFDebugNames::extract().
|
inline |
Definition at line 466 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base.
|
friend |
Definition at line 473 of file DWARFAcceleratorTable.h.