Move Align(val, alignment) utility function to ARMUtils.h.

llvm-svn: 125753
This commit is contained in:
Johnny Chen 2011-02-17 17:31:08 +00:00
parent 5fc74804a6
commit 0f60574fd7
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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) {