diff options
Diffstat (limited to 'include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h')
-rw-r--r-- | include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h b/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h index a85c2f9f0a23b..9f051cd7081c6 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h +++ b/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h @@ -10,6 +10,7 @@ #ifndef LLVM_LIB_DEBUGINFO_DWARFUNITINDEX_H #define LLVM_LIB_DEBUGINFO_DWARFUNITINDEX_H +#include "llvm/ADT/ArrayRef.h" #include "llvm/Support/DataExtractor.h" #include "llvm/Support/Format.h" #include "llvm/Support/raw_ostream.h" @@ -56,6 +57,10 @@ public: public: const SectionContribution *getOffset(DWARFSectionKind Sec) const; const SectionContribution *getOffset() const; + const SectionContribution *getOffsets() const { + return Contributions.get(); + } + uint64_t getSignature() const { return Signature; } }; private: @@ -75,6 +80,12 @@ public: : InfoColumnKind(InfoColumnKind) {} void dump(raw_ostream &OS) const; const Entry *getFromOffset(uint32_t Offset) const; + ArrayRef<DWARFSectionKind> getColumnKinds() const { + return makeArrayRef(ColumnKinds.get(), Header.NumColumns); + } + ArrayRef<Entry> getRows() const { + return makeArrayRef(Rows.get(), Header.NumBuckets); + } }; } |