Skip to content

Commit 5a6c691

Browse files
committed
[LLVM][DebugInfo] Add accessor for NameIndex header.
This is needed for pending LLD work to create a single unified .debug_names index (rather than just appending all the indices from each .o file).
1 parent ad00e7e commit 5a6c691

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,9 @@ class DWARFDebugNames : public DWARFAcceleratorTable {
605605
NameIndex(const DWARFDebugNames &Section, uint64_t Base)
606606
: Section(Section), Base(Base) {}
607607

608+
/// Returns Hdr field
609+
Header getHeader() const { return Hdr; }
610+
608611
/// Reads offset of compilation unit CU. CU is 0-based.
609612
uint64_t getCUOffset(uint32_t CU) const;
610613
uint32_t getCUCount() const { return Hdr.CompUnitCount; }

0 commit comments

Comments
 (0)