diff options
author | Kazu Hirata <kazu@google.com> | 2025-09-28 10:27:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-28 10:27:29 -0700 |
commit | 9a5671efac31d91e3479c6ae6a0af6196100beb3 (patch) | |
tree | 898a9cffad48dc7f07edc26d178df8f8532a01bf /llvm/unittests/ADT/BreadthFirstIteratorTest.cpp | |
parent | 372f78643e7154f8b3f28a01aebdc1aab87168fb (diff) | |
download | llvm-9a5671efac31d91e3479c6ae6a0af6196100beb3.zip llvm-9a5671efac31d91e3479c6ae6a0af6196100beb3.tar.gz llvm-9a5671efac31d91e3479c6ae6a0af6196100beb3.tar.bz2 |
[Support] Deprecate one form of support::endian::byte_swap (NFC) (#161045)
This is a follow-up to #156140 and #160979, which deprecated one form of
write and read, respectively.
We have two forms of byte_swap:
template <typename value_type>
[[nodiscard]] inline value_type byte_swap(value_type value, endianness
endian)
template <typename value_type, endianness endian>
[[nodiscard]] inline value_type byte_swap(value_type value)
The difference is that endian is a function parameter in the former
but a template parameter in the latter.
This patch streamlines the code by migrating the use of the latter to
the former while deprecating the latter because the latter is just
forwarded to the former.
Diffstat (limited to 'llvm/unittests/ADT/BreadthFirstIteratorTest.cpp')
0 files changed, 0 insertions, 0 deletions