[Lldb-commits] [PATCH] D154505: [lldb][NFC] Remove code duplication in InitOSO

Felipe de Azevedo Piovezan via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 5 05:47:16 PDT 2023


fdeazeve created this revision.
Herald added a project: All.
fdeazeve requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154505

Files:
  lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154505.537322.patch
Type: text/x-patch
Size: 10562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230705/69902b76/attachment.bin>


More information about the lldb-commits mailing list