Skip to content

[lldb] Include bit.h instead of SwapByteOrder.h (NFC) #151903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kazutakahirata
Copy link
Contributor

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

We use llvm::byteswap from bit.h, but we don't use any feature from
SwapByteOrder.h.
@llvmbot
Copy link
Member

llvmbot commented Aug 4, 2025

@llvm/pr-subscribers-lldb

Author: Kazu Hirata (kazutakahirata)

Changes

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

Copy link
Collaborator

@DavidSpickett DavidSpickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@kazutakahirata kazutakahirata merged commit c5c2570 into llvm:main Aug 4, 2025
11 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250803_hash_lldb branch August 4, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants