diff options
Diffstat (limited to 'include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h')
-rw-r--r-- | include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h b/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h index 8e2ce023695bf..49ed4bb222f3f 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h +++ b/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h @@ -83,9 +83,13 @@ public: DWARFUnitIndex(DWARFSectionKind InfoColumnKind) : InfoColumnKind(InfoColumnKind) {} + explicit operator bool() const { return Header.NumBuckets; } + bool parse(DataExtractor IndexData); void dump(raw_ostream &OS) const; + const Entry *getFromOffset(uint32_t Offset) const; + const Entry *getFromHash(uint64_t Offset) const; ArrayRef<DWARFSectionKind> getColumnKinds() const { return makeArrayRef(ColumnKinds.get(), Header.NumColumns); |