[llvm] [BOLT][DWARF] Remove redundant code (PR #82118)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 17 07:45:19 PST 2024
https://github.com/ayermolo created https://github.com/llvm/llvm-project/pull/82118
Removed some redundant code. Should be NFC change.
>From 73df02d36c70a9f2ac182be89197a53f7b8a0de5 Mon Sep 17 00:00:00 2001
From: Alexander Yermolovich <ayermolo at meta.com>
Date: Fri, 16 Feb 2024 17:03:02 -0800
Subject: [PATCH] [BOLT][DWARF] Remove redundant code
Removed some redundant code. Should be NFC change.
---
bolt/lib/Rewrite/DWARFRewriter.cpp | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/bolt/lib/Rewrite/DWARFRewriter.cpp b/bolt/lib/Rewrite/DWARFRewriter.cpp
index 27fa937c7508c3..1fa695ebbc36d0 100644
--- a/bolt/lib/Rewrite/DWARFRewriter.cpp
+++ b/bolt/lib/Rewrite/DWARFRewriter.cpp
@@ -720,12 +720,7 @@ void DWARFRewriter::updateDebugInfo() {
TempRangesSectionWriter = RangeListsWritersByCU[*DWOId].get();
} else {
RangesBase = RangesSectionWriter->getSectionOffset();
- // For DWARF5 there is now .debug_rnglists.dwo, so don't need to
- // update rnglists base.
- if (RangesBase) {
- DwoRangesBase[*DWOId] = *RangesBase;
- setDwoRangesBase(*DWOId, *RangesBase);
- }
+ setDwoRangesBase(*DWOId, *RangesBase);
}
updateUnitDebugInfo(*(*SplitCU), DWODIEBuilder, DebugLocDWoWriter,
More information about the llvm-commits
mailing list