[Lldb-commits] [lldb] bf874eb - [lldb] Use llvm::rotr (NFC)
Kazu Hirata via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 20 10:38:24 PST 2023
Author: Kazu Hirata
Date: 2023-02-20T10:38:18-08:00
New Revision: bf874eb09bf3fb9ff13b6a06ec653acc5c041af0
URL: https://github.com/llvm/llvm-project/commit/bf874eb09bf3fb9ff13b6a06ec653acc5c041af0
DIFF: https://github.com/llvm/llvm-project/commit/bf874eb09bf3fb9ff13b6a06ec653acc5c041af0.diff
LOG: [lldb] Use llvm::rotr (NFC)
Added:
Modified:
lldb/source/Plugins/Process/Utility/ARMUtils.h
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/Utility/ARMUtils.h b/lldb/source/Plugins/Process/Utility/ARMUtils.h
index a7aaa5ac7a1ff..9256f926275b8 100644
--- a/lldb/source/Plugins/Process/Utility/ARMUtils.h
+++ b/lldb/source/Plugins/Process/Utility/ARMUtils.h
@@ -11,6 +11,7 @@
#include "ARMDefines.h"
#include "InstructionUtils.h"
+#include "llvm/ADT/bit.h"
#include "llvm/Support/MathExtras.h"
// Common utilities for the ARM/Thumb Instruction Set Architecture.
@@ -173,8 +174,7 @@ static inline uint32_t ROR_C(const uint32_t value, const uint32_t amount,
return 0;
}
*success = true;
- uint32_t amt = amount % 32;
- uint32_t result = Rotr32(value, amt);
+ uint32_t result = llvm::rotr<uint32_t>(value, amount);
carry_out = Bit32(value, 31);
return result;
}
More information about the lldb-commits
mailing list