diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-07-27 14:54:59 -0700 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-07-27 14:57:45 -0700 |
commit | 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26 (patch) | |
tree | 8b0484b86c01c5c356c54d41dc7284530c010306 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | a800485a2deda0807cb9dc212b7d42ac916055fd (diff) | |
download | llvm-4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26.zip llvm-4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26.tar.gz llvm-4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26.tar.bz2 |
[libc++] Simplify single-iterator __bit_iterator algorithm specializations
The single-iterator algorithms have an implementation for `false` and `true`, which are almost identical. Instead of writing two functions, this refactors the code to take the value searched for as a template parameter. This avoids a lot of code duplication and makes it easier to reason about the algorithm and their difference.
Reviewed By: #libc, Mordante
Spies: Mordante, libcxx-commits
Differential Revision: https://reviews.llvm.org/D156033
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions