From 0f60574fd708ae310d221706a925d76e82679464 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 17 Feb 2011 17:31:08 +0000 Subject: [PATCH] Move Align(val, alignment) utility function to ARMUtils.h. llvm-svn: 125753 --- .../source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp | 5 ----- lldb/source/Plugins/Process/Utility/ARMUtils.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp index b45244ba10f5..a6ef14c9f669 100644 --- a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp +++ b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp @@ -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 diff --git a/lldb/source/Plugins/Process/Utility/ARMUtils.h b/lldb/source/Plugins/Process/Utility/ARMUtils.h index b7e47b94b897..d1109eb777ed 100644 --- a/lldb/source/Plugins/Process/Utility/ARMUtils.h +++ b/lldb/source/Plugins/Process/Utility/ARMUtils.h @@ -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) {