LLVM 18.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 541 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 573 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base.
|
inline |
Definition at line 615 of file DWARFAcceleratorTable.h.
LLVM_DUMP_METHOD void DWARFDebugNames::NameIndex::dump | ( | ScopedPrinter & | W | ) | const |
Definition at line 837 of file DWARFAcceleratorTable.cpp.
References llvm::sampleprof::Base, and llvm::Twine::utohexstr().
|
inline |
Definition at line 616 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 869 of file DWARFAcceleratorTable.cpp.
References llvm::make_range().
Error DWARFDebugNames::NameIndex::extract | ( | ) |
Definition at line 555 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 606 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 736 of file DWARFAcceleratorTable.cpp.
References assert().
|
inline |
Definition at line 592 of file DWARFAcceleratorTable.h.
|
inline |
Definition at line 578 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 669 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 693 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 586 of file DWARFAcceleratorTable.h.
Reads signature of foreign type unit TU. TU is 0-based.
Definition at line 683 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 742 of file DWARFAcceleratorTable.cpp.
References assert().
|
inline |
Definition at line 582 of file DWARFAcceleratorTable.h.
Referenced by llvm::DWARFDebugNames::Entry::getLocalTUOffset().
Reads offset of local type unit TU, TU is 0-based.
Definition at line 676 of file DWARFAcceleratorTable.cpp.
References assert(), llvm::dwarf::getDwarfOffsetByteSize(), and llvm::Offset.
Referenced by llvm::DWARFDebugNames::Entry::getLocalTUOffset().
|
inline |
Definition at line 604 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 719 of file DWARFAcceleratorTable.cpp.
References assert(), and llvm::dwarf::getDwarfOffsetByteSize().
Referenced by llvm::DWARFDebugNames::NameIterator::operator*().
|
inline |
Definition at line 620 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base, and llvm::dwarf::getUnitLengthFieldByteSize().
Referenced by llvm::DWARFDebugNames::extract().
|
inline |
Definition at line 619 of file DWARFAcceleratorTable.h.
References llvm::sampleprof::Base.
|
friend |
Definition at line 626 of file DWARFAcceleratorTable.h.