forked from OSchip/llvm-project
Move Align(val, alignment) utility function to ARMUtils.h.
llvm-svn: 125753
This commit is contained in:
parent
5fc74804a6
commit
0f60574fd7
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue