[Lldb-commits] [lldb] [lldb] Include bit.h instead of SwapByteOrder.h (NFC) (PR #151903)

via lldb-commits lldb-commits at lists.llvm.org
Sun Aug 3 22:57:39 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

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


---
Full diff: https://github.com/llvm/llvm-project/pull/151903.diff


1 Files Affected:

- (modified) lldb/include/lldb/Core/Opcode.h (+1-1) 


``````````diff
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>

``````````

</details>


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


More information about the lldb-commits mailing list