[llvm] 8dd3bc1 - [Support] Remove the migration helpers to llvm::endianness
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 14 10:51:22 PDT 2023
Author: Kazu Hirata
Date: 2023-10-14T10:51:15-07:00
New Revision: 8dd3bc18081657fee2352cf5b1c6abacb18fcc84
URL: https://github.com/llvm/llvm-project/commit/8dd3bc18081657fee2352cf5b1c6abacb18fcc84
DIFF: https://github.com/llvm/llvm-project/commit/8dd3bc18081657fee2352cf5b1c6abacb18fcc84.diff
LOG: [Support] Remove the migration helpers to llvm::endianness
I've migrated all known uses of llvm::support::endianness to
llvm::endianness. This patch removes the migration helpers.
Added:
Modified:
llvm/include/llvm/Support/Endian.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/Endian.h b/llvm/include/llvm/Support/Endian.h
index d4fc6b59e252f85..4c0405cf1e2f69c 100644
--- a/llvm/include/llvm/Support/Endian.h
+++ b/llvm/include/llvm/Support/Endian.h
@@ -25,13 +25,6 @@
namespace llvm {
namespace support {
-// TODO: Remove the following once we are done migrating to llvm::endianness,
-// llvm::endianness::big, etc.
-using endianness = llvm::endianness;
-constexpr llvm::endianness big = llvm::endianness::big;
-constexpr llvm::endianness little = llvm::endianness::little;
-constexpr llvm::endianness native = llvm::endianness::native;
-
// These are named values for common alignments.
enum {aligned = 0, unaligned = 1};
@@ -47,10 +40,6 @@ struct PickAlignment {
namespace endian {
-LLVM_DEPRECATED("Use llvm::endianness::native instead",
- "llvm::endianness::native")
-constexpr endianness system_endianness() { return llvm::endianness::native; }
-
template <typename value_type>
[[nodiscard]] inline value_type byte_swap(value_type value, endianness endian) {
if (endian != llvm::endianness::native)
More information about the llvm-commits
mailing list