llvm-project
152d0f5c - [Support] Deprecate one form of support::endian::write (NFC) (#156140)

Commit
2 days ago
[Support] Deprecate one form of support::endian::write (NFC) (#156140) We have two forms of write: template <typename value_type, std::size_t alignment = unaligned> inline void write(void *memory, value_type value, endianness endian) template <typename value_type, endianness endian, std::size_t alignment> inline void write(void *memory, 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. I'm planning to do the same for byte_swap and read in follow-up patches to keep this patch simple and small.
Parents
Loading