[BOLT][DWARF][NFC] Remove DWO ranges base (#99284)
Removes getters and setters for DWO ranges base due to it not being used.
This commit is contained in:
@@ -95,9 +95,6 @@ private:
|
||||
|
||||
std::mutex LocListDebugInfoPatchesMutex;
|
||||
|
||||
/// Dwo id specific its RangesBase.
|
||||
std::unordered_map<uint64_t, uint64_t> DwoRangesBase;
|
||||
|
||||
std::unordered_map<DWARFUnit *, uint64_t> LineTablePatchMap;
|
||||
std::unordered_map<const DWARFUnit *, uint64_t> TypeUnitRelocMap;
|
||||
|
||||
@@ -191,12 +188,6 @@ public:
|
||||
/// Update stmt_list for CUs based on the new .debug_line \p Layout.
|
||||
void updateLineTableOffsets(const MCAssembler &Asm);
|
||||
|
||||
uint64_t getDwoRangesBase(uint64_t DWOId) { return DwoRangesBase[DWOId]; }
|
||||
|
||||
void setDwoRangesBase(uint64_t DWOId, uint64_t RangesBase) {
|
||||
DwoRangesBase[DWOId] = RangesBase;
|
||||
}
|
||||
|
||||
using OverriddenSectionsMap = std::unordered_map<DWARFSectionKind, StringRef>;
|
||||
/// Output .dwo files.
|
||||
void writeDWOFiles(DWARFUnit &, const OverriddenSectionsMap &,
|
||||
|
||||
@@ -719,7 +719,6 @@ void DWARFRewriter::updateDebugInfo() {
|
||||
} else {
|
||||
TempRangesSectionWriter = LegacyRangesWritersByCU[*DWOId].get();
|
||||
RangesBase = RangesSectionWriter->getSectionOffset();
|
||||
setDwoRangesBase(*DWOId, *RangesBase);
|
||||
}
|
||||
|
||||
updateUnitDebugInfo(*(*SplitCU), DWODIEBuilder, DebugLocDWoWriter,
|
||||
|
||||
Reference in New Issue
Block a user