[llvm] [BOLT][DWARF] Refactor updateDWARFObjectAddressRanges (PR #96006)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 10:32:36 PDT 2024
================
@@ -89,6 +89,13 @@ class DWARFRewriter {
/// Store Rangelists writer for each DWO CU.
RangeListsDWOWriers RangeListsWritersByCU;
+ using LegacyRangesDWOWriers =
+ std::unordered_map<uint64_t, std::unique_ptr<DebugRangesSectionWriter>>;
+ /// Store Ranges writer for each DWO CU.
+ LegacyRangesDWOWriers LegacyRangesWritersByCU;
----------------
ayermolo wrote:
Maybe best to just have one of these unordered_map that maps dwoID to a struct containing std::unique_ptr<DebugRangesSectionWriter>> and DIE *.
https://github.com/llvm/llvm-project/pull/96006
More information about the llvm-commits
mailing list