LLVM 22.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 600 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 627 of file DWARFAcceleratorTable.h.
References DWARFDebugNames.
|
inline |
Definition at line 682 of file DWARFAcceleratorTable.h.
LLVM_DUMP_METHOD void DWARFDebugNames::NameIndex::dump | ( | ScopedPrinter & | W | ) | const |
Definition at line 919 of file DWARFAcceleratorTable.cpp.
References LLVM_DUMP_METHOD, and llvm::Twine::utohexstr().
|
inline |
Definition at line 683 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 951 of file DWARFAcceleratorTable.cpp.
References llvm::InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs... >::Key, and llvm::make_range().
Error DWARFDebugNames::NameIndex::extract | ( | ) |
Definition at line 573 of file DWARFAcceleratorTable.cpp.
References llvm::createStringError(), llvm::dwarf::findDebugNamesOffsets(), llvm::dwarf::getDwarfOffsetByteSize(), llvm::illegal_byte_sequence, llvm::invalid_argument, isSentinel(), llvm::DataExtractor::isValidOffsetForDataOfSize(), llvm::Offset, and llvm::Error::success().
|
inline |
Definition at line 666 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 812 of file DWARFAcceleratorTable.cpp.
References assert().
|
inline |
Definition at line 652 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 638 of file DWARFAcceleratorTable.h.
Reads offset of compilation unit CU. CU is 0-based.
Definition at line 744 of file DWARFAcceleratorTable.cpp.
References assert(), llvm::dwarf::getDwarfOffsetByteSize(), and llvm::Offset.
Expected< DWARFDebugNames::Entry > DWARFDebugNames::NameIndex::getEntry | ( | uint64_t * | Offset | ) | const |
Definition at line 769 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::make_error(), and llvm::Offset.
Referenced by getEntryAtRelativeOffset().
|
inline |
Returns the Entry at the relative Offset from the start of the Entry pool.
Definition at line 674 of file DWARFAcceleratorTable.h.
References llvm::DWARFDebugNames::DWARFDebugNamesOffsets::EntriesBase, getEntry(), and llvm::Offset.
|
inline |
Definition at line 646 of file DWARFAcceleratorTable.h.
Reads signature of foreign type unit TU. TU is 0-based.
Definition at line 759 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 818 of file DWARFAcceleratorTable.cpp.
References assert().
|
inline |
Returns Hdr field.
Definition at line 631 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 642 of file DWARFAcceleratorTable.h.
Reads offset of local type unit TU, TU is 0-based.
Definition at line 751 of file DWARFAcceleratorTable.cpp.
References assert(), llvm::dwarf::getDwarfOffsetByteSize(), and llvm::Offset.
|
inline |
Definition at line 664 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 795 of file DWARFAcceleratorTable.cpp.
References assert(), and llvm::dwarf::getDwarfOffsetByteSize().
|
inline |
Definition at line 687 of file DWARFAcceleratorTable.h.
References llvm::dwarf::getUnitLengthFieldByteSize().
|
inline |
Returns Offsets field.
Definition at line 634 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 686 of file DWARFAcceleratorTable.h.
|
friend |
Definition at line 693 of file DWARFAcceleratorTable.h.
References DWARFDebugNames.
Referenced by DWARFDebugNames, and NameIndex().