Skip to content

Commit 9e485f4

Browse files
authored
[DWARF] Add accessor for NameIndex Offsets field. (#88783)
Add an accessor function to DWARFDebugNames::NameIndex to allow other classes to access the Offsets field within NameIndex. This will be used by LLD to create a merged .debug_names index (#86508)
1 parent fb9c7dd commit 9e485f4

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
@@ -608,6 +608,9 @@ class DWARFDebugNames : public DWARFAcceleratorTable {
608608
/// Returns Hdr field
609609
Header getHeader() const { return Hdr; }
610610

611+
/// Returns Offsets field
612+
DWARFDebugNamesOffsets getOffsets() const { return Offsets; }
613+
611614
/// Reads offset of compilation unit CU. CU is 0-based.
612615
uint64_t getCUOffset(uint32_t CU) const;
613616
uint32_t getCUCount() const { return Hdr.CompUnitCount; }

0 commit comments

Comments
 (0)