class DWARFDebugNames::ValueIterator
Declaration
class DWARFDebugNames::ValueIterator { /* full declaration omitted */ };
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:476
Member Variables
- private const llvm::DWARFDebugNames::NameIndex* CurrentIndex = nullptr
- The Name Index we are currently iterating through. The implementation relies on the fact that this can also be used as an iterator into the "NameIndices" vector in the Accelerator section.
- private bool IsLocal
- Whether this is a local iterator (searches in CurrentIndex only) or not (searches all name indices).
- private Optional<llvm::DWARFDebugNames::Entry> CurrentEntry
- private uint64_t DataOffset = 0
- Offset into the section.
- private std::string Key
- The Key we are searching for.
- private Optional<uint32_t> Hash
- Hash of Key, if it has been computed.
Method Overview
- public ValueIterator(const llvm::DWARFDebugNames & AccelTable, llvm::StringRef Key)
- public ValueIterator(const llvm::DWARFDebugNames::NameIndex & NI, llvm::StringRef Key)
- public ValueIterator()
- private Optional<uint64_t> findEntryOffsetInCurrentIndex()
- private bool findInCurrentIndex()
- private bool getEntryAtCurrentOffset()
- private void next()
- private void searchFromStartOfCurrentIndex()
- private void setEnd()
Methods
¶ValueIterator(
const llvm::DWARFDebugNames& AccelTable,
llvm::StringRef Key)
ValueIterator(
const llvm::DWARFDebugNames& AccelTable,
llvm::StringRef Key)
Description
Create a "begin" iterator for looping over all entries in the accelerator table matching Key. The iterator will run through all Name Indexes in the section in sequence.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:512
Parameters
- const llvm::DWARFDebugNames& AccelTable
- llvm::StringRef Key
¶ValueIterator(
const llvm::DWARFDebugNames::NameIndex& NI,
llvm::StringRef Key)
ValueIterator(
const llvm::DWARFDebugNames::NameIndex& NI,
llvm::StringRef Key)
Description
Create a "begin" iterator for looping over all entries in a specific Name Index. Other indices in the section will not be visited.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:516
Parameters
- const llvm::DWARFDebugNames::NameIndex& NI
- llvm::StringRef Key
¶ValueIterator()
ValueIterator()
Description
End marker.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:519
¶Optional<uint64_t> findEntryOffsetInCurrentIndex()
Optional<uint64_t> findEntryOffsetInCurrentIndex()
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:500
¶bool findInCurrentIndex()
bool findInCurrentIndex()
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:501
¶bool getEntryAtCurrentOffset()
bool getEntryAtCurrentOffset()
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:499
¶void next()
void next()
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:503
¶void searchFromStartOfCurrentIndex()
void searchFromStartOfCurrentIndex()
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:502
¶void setEnd()
void setEnd()
Description
Set the iterator to the "end" state.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h:506