Skip to content

Commit f81f7a5

Browse files
authored
[BOLT][DWARF] Remove redundant code (#82118)
Removed some redundant code. Should be NFC change.
1 parent 11705af commit f81f7a5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bolt/lib/Rewrite/DWARFRewriter.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -720,12 +720,7 @@ void DWARFRewriter::updateDebugInfo() {
720720
TempRangesSectionWriter = RangeListsWritersByCU[*DWOId].get();
721721
} else {
722722
RangesBase = RangesSectionWriter->getSectionOffset();
723-
// For DWARF5 there is now .debug_rnglists.dwo, so don't need to
724-
// update rnglists base.
725-
if (RangesBase) {
726-
DwoRangesBase[*DWOId] = *RangesBase;
727-
setDwoRangesBase(*DWOId, *RangesBase);
728-
}
723+
setDwoRangesBase(*DWOId, *RangesBase);
729724
}
730725

731726
updateUnitDebugInfo(*(*SplitCU), DWODIEBuilder, DebugLocDWoWriter,

0 commit comments

Comments
 (0)