https://github.com/kazutakahirata created 
https://github.com/llvm/llvm-project/pull/151903

We use llvm::byteswap from bit.h, but we don't use any feature from
SwapByteOrder.h.


>From 9d3b29f2da95e0328ef73a71f15815a9f71d3e88 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <k...@google.com>
Date: Sun, 3 Aug 2025 14:45:48 -0700
Subject: [PATCH] [lldb] Include bit.h instead of SwapByteOrder.h (NFC)

We use llvm::byteswap from bit.h, but we don't use any feature from
SwapByteOrder.h.
---
 lldb/include/lldb/Core/Opcode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/include/lldb/Core/Opcode.h b/lldb/include/lldb/Core/Opcode.h
index 91af15c62e6ab..f680e0b91ab85 100644
--- a/lldb/include/lldb/Core/Opcode.h
+++ b/lldb/include/lldb/Core/Opcode.h
@@ -12,7 +12,7 @@
 #include "lldb/Utility/Endian.h"
 #include "lldb/lldb-enumerations.h"
 
-#include "llvm/Support/SwapByteOrder.h"
+#include "llvm/ADT/bit.h"
 
 #include <cassert>
 #include <cstdint>

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to