[llvm] 5a6c691 - [LLVM][DebugInfo] Add accessor for NameIndex header.
Caroline Tice via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 20 16:39:14 PDT 2024
Author: Caroline Tice
Date: 2024-03-20T16:38:56-07:00
New Revision: 5a6c69132fb427d9ba71a72274c66ddb76ae66d5
URL: https://github.com/llvm/llvm-project/commit/5a6c69132fb427d9ba71a72274c66ddb76ae66d5
DIFF: https://github.com/llvm/llvm-project/commit/5a6c69132fb427d9ba71a72274c66ddb76ae66d5.diff
LOG: [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).
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 d368c7e0ece8f3..f1d4fc72d5a727 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
@@ -605,6 +605,9 @@ class DWARFDebugNames : public DWARFAcceleratorTable {
NameIndex(const DWARFDebugNames &Section, uint64_t Base)
: Section(Section), Base(Base) {}
+ /// Returns Hdr field
+ Header getHeader() const { return Hdr; }
+
/// 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