[all-commits] [llvm/llvm-project] 61f2d3: [lldb][NFC] Simplify part of Options::GenerateOpti...
David Spickett via All-commits
all-commits at lists.llvm.org
Tue May 3 07:32:40 PDT 2022
Author: David Spickett <david.spickett at linaro.org>
Date: 2022-05-03 (Tue, 03 May 2022)
[lldb][NFC] Simplify part of Options::GenerateOptionUsage
Use llvm::enumerate, remove an unused arg name stream and
replace repeated uses of indexing to get the option def.
We could use map instead of multimap but I'm not 100% that
would be NFC. All short options should be unique in theory.
Depends on D123500
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D123501
More information about the All-commits