LLVM 20.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 599 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 626 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base.
|
inline |
Definition at line 681 of file DWARFAcceleratorTable.h.
LLVM_DUMP_METHOD void DWARFDebugNames::NameIndex::dump | ( | ScopedPrinter & | W | ) | const |
Definition at line 919 of file DWARFAcceleratorTable.cpp.
References llvm::sampleprof::Base, and llvm::Twine::utohexstr().
|
inline |
Definition at line 682 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::make_range().
Error DWARFDebugNames::NameIndex::extract | ( | ) |
Definition at line 573 of file DWARFAcceleratorTable.cpp.
References llvm::sampleprof::Base, 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().
Referenced by llvm::DWARFDebugNames::extract().
|
inline |
Definition at line 665 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 651 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 637 of file DWARFAcceleratorTable.h.
Referenced by llvm::DWARFDebugNames::Entry::getCUOffset(), llvm::DWARFDebugNames::Entry::getRelatedCUIndex(), and llvm::DWARFDebugNames::Entry::getRelatedCUOffset().
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.
Referenced by llvm::DWARFDebugNames::Entry::getCUOffset(), and llvm::DWARFDebugNames::Entry::getRelatedCUOffset().
Expected< DWARFDebugNames::Entry > DWARFDebugNames::NameIndex::getEntry | ( | uint64_t * | Offset | ) | const |
Definition at line 769 of file DWARFAcceleratorTable.cpp.
References llvm::createStringError(), llvm::DataExtractor::getULEB128(), llvm::illegal_byte_sequence, llvm::invalid_argument, llvm::io_error, llvm::DataExtractor::isValidOffset(), llvm::Offset, llvm::DWARFAcceleratorTable::Entry::Values, and llvm::dwarf::FormParams::Version.
Referenced by getEntryAtRelativeOffset().
|
inline |
Returns the Entry at the relative Offset
from the start of the Entry pool.
Definition at line 673 of file DWARFAcceleratorTable.h.
References llvm::DWARFDebugNames::DWARFDebugNamesOffsets::EntriesBase, getEntry(), and llvm::Offset.
Referenced by llvm::DWARFDebugNames::Entry::getParentDIEEntry().
|
inline |
Definition at line 645 of file DWARFAcceleratorTable.h.
Referenced by llvm::DWARFDebugNames::Entry::getForeignTUTypeSignature().
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.
Referenced by llvm::DWARFDebugNames::Entry::getForeignTUTypeSignature().
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 630 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 641 of file DWARFAcceleratorTable.h.
Referenced by llvm::DWARFDebugNames::Entry::getForeignTUTypeSignature(), and llvm::DWARFDebugNames::Entry::getLocalTUOffset().
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.
Referenced by llvm::DWARFDebugNames::Entry::getLocalTUOffset().
|
inline |
Definition at line 663 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().
Referenced by llvm::DWARFDebugNames::NameIterator::operator*().
|
inline |
Definition at line 686 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base, and llvm::dwarf::getUnitLengthFieldByteSize().
Referenced by llvm::DWARFDebugNames::extract().
|
inline |
Returns Offsets field.
Definition at line 633 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 685 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base.
|
friend |
Definition at line 692 of file DWARFAcceleratorTable.h.