[llvm] 9e485f4 - [DWARF] Add accessor for NameIndex Offsets field. (#88783)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 15 13:11:28 PDT 2024
Author: cmtice
Date: 2024-04-15T13:11:24-07:00
New Revision: 9e485f48228114ab6c34151503740ea15cddb351
URL: https://github.com/llvm/llvm-project/commit/9e485f48228114ab6c34151503740ea15cddb351
DIFF: https://github.com/llvm/llvm-project/commit/9e485f48228114ab6c34151503740ea15cddb351.diff
LOG: [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
(https://github.com/llvm/llvm-project/pull/86508)
Added:
Modified:
llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
index 9543b78ea61309..0d447a78cdc614 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
@@ -608,6 +608,9 @@ class DWARFDebugNames : public DWARFAcceleratorTable {
/// Returns Hdr field
Header getHeader() const { return Hdr; }
+ /// Returns Offsets field
+ DWARFDebugNamesOffsets getOffsets() const { return Offsets; }
+
/// Reads offset of compilation unit CU. CU is 0-based.
uint64_t getCUOffset(uint32_t CU) const;
uint32_t getCUCount() const { return Hdr.CompUnitCount; }
More information about the llvm-commits
mailing list