[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
================
@@ -1290,11 +1303,9 @@ void DWARFRewriter::updateDWARFObjectAddressRanges(
RangesAttrInfo.getForm() == dwarf::DW_FORM_sec_offset)
NeedConverted = true;
- uint64_t CurRangeBase = 0;
if (Unit.isDWOUnit()) {
- if (std::optional<uint64_t> DWOId = Unit.getDWOId())
- CurRangeBase = getDwoRangesBase(*DWOId);
- else
+ std::optional<uint64_t> DWOId = Unit.getDWOId();
----------------
ayermolo wrote:
This entire check seems unnecessary now.
https://github.com/llvm/llvm-project/pull/96006
More information about the llvm-commits
mailing list