llvm-project
798ccd2e - [Support] Deprecate one form of support::endian::read (NFC) (#160979)

Commit
153 days ago
[Support] Deprecate one form of support::endian::read (NFC) (#160979) This is a follow-up to #156140, which deprecated one form of write. We have two forms of read: template <typename value_type, std::size_t alignment> [[nodiscard]] inline value_type read(const void *memory, endianness endian) template <typename value_type, endianness endian, std::size_t alignment> [[nodiscard]] inline value_type read(const void *memory) 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.
Parents
Loading