[all-commits] [llvm/llvm-project] 7cea22: [lldb][NFC] Remove code duplication in InitOSO
Felipe de Azevedo Piovezan via All-commits
all-commits at lists.llvm.org
Thu Jul 6 05:21:04 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7cea22c0be95834317c920c21839cdd4c80fbdd8
https://github.com/llvm/llvm-project/commit/7cea22c0be95834317c920c21839cdd4c80fbdd8
Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
Date: 2023-07-06 (Thu, 06 Jul 2023)
Changed paths:
M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
Log Message:
-----------
[lldb][NFC] Remove code duplication in InitOSO
Two identical loops were iterating over different ranges, leading to code
duplication. We replace this by a loop over the concatenation of the ranges.
We also use early returns to avoid deeply nested code and explicitly check for a
condition mentioned in comments.
Differential Revision: https://reviews.llvm.org/D154505
More information about the All-commits
mailing list