[Lldb-commits] [lldb] r125753 - in /lldb/trunk/source/Plugins: Instruction/ARM/EmulateInstructionARM.cpp Process/Utility/ARMUtils.h
Johnny Chen
johnny.chen at apple.com
Thu Feb 17 09:31:09 PST 2011
Author: johnny
Date: Thu Feb 17 11:31:08 2011
New Revision: 125753
URL: http://llvm.org/viewvc/llvm-project?rev=125753&view=rev
Log:
Move Align(val, alignment) utility function to ARMUtils.h.
Modified:
lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
lldb/trunk/source/Plugins/Process/Utility/ARMUtils.h
Modified: lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp?rev=125753&r1=125752&r2=125753&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp (original)
+++ lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Thu Feb 17 11:31:08 2011
@@ -23,11 +23,6 @@
using namespace lldb;
using namespace lldb_private;
-static inline uint32_t Align(uint32_t val, uint32_t alignment)
-{
- return alignment * (val / alignment);
-}
-
//----------------------------------------------------------------------
//
// ITSession implementation
Modified: lldb/trunk/source/Plugins/Process/Utility/ARMUtils.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/ARMUtils.h?rev=125753&r1=125752&r2=125753&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/ARMUtils.h (original)
+++ lldb/trunk/source/Plugins/Process/Utility/ARMUtils.h Thu Feb 17 11:31:08 2011
@@ -18,6 +18,11 @@
namespace lldb_private {
+static inline uint32_t Align(uint32_t val, uint32_t alignment)
+{
+ return alignment * (val / alignment);
+}
+
static inline uint32_t DecodeImmShift(const uint32_t type, const uint32_t imm5, ARM_ShifterType &shift_t)
{
switch (type) {
More information about the lldb-commits
mailing list