blob: 5b10b31b2f3a15f5e3acfc2bc786d2a436523330 [file] [log] [blame]
Johnny Chen4baf2e32011-01-24 18:24:53 +00001//===-- lldb_ARMUtils.h -----------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef lldb_ARMUtils_h_
11#define lldb_ARMUtils_h_
12
13// Utility functions for the ARM/Thumb Instruction Set Architecture.
14
15namespace lldb_private {
16
17// This function performs the check for the register numbers 13 and 15 that are
18// not permitted for many Thumb register specifiers.
19static inline bool BadReg(uint32_t n) { return n == 13 || n == 15; }
20
21} // namespace lldb_private
22
23#endif // lldb_ARMUtils_h_