[llvm] [BOLT][DWARF][NFC] Refactor address writers (PR #98094)
Sayhaan Siddiqui via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 18:08:16 PDT 2024
================
@@ -698,7 +712,8 @@ void DWARFRewriter::updateDebugInfo() {
DWODIEBuilder.updateDWONameCompDirForTypes(DWOStrOffstsWriter,
DWOStrWriter, **SplitCU,
DwarfOutputPath, DWOName);
- DebugLoclistWriter DebugLocDWoWriter(*Unit, Unit->getVersion(), true);
+ DebugLoclistWriter DebugLocDWoWriter(*Unit, Unit->getVersion(), true,
+ *AddressWriter);
DebugRangesSectionWriter *TempRangesSectionWriter = RangesSectionWriter;
if (Unit->getVersion() >= 5) {
TempRangesSectionWriter = RangeListsWritersByCU[*DWOId].get();
----------------
sayhaan wrote:
It's set for RangeListWritersByCU when RangeListWritersByCU is populated, and TempRangesSectionWriter accesses RangeListsWritersByCU. We don't need to populate it in both places as far as I can tell.
https://github.com/llvm/llvm-project/pull/98094
More information about the llvm-commits
mailing list