diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-01-24 18:24:53 +0000 | 
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-01-24 18:24:53 +0000 | 
| commit | 91027008f1e2a2ef65be47c6b3aedebd119cb2eb (patch) | |
| tree | 211debedc4ec3bdc41adcac027de0fa5dffbef08 /lldb/source/Plugins/Process/Utility/ARMUtils.h | |
| parent | 52552c8a32921f557157a93fec2f5628fdcfafaf (diff) | |
| download | bcm5719-llvm-91027008f1e2a2ef65be47c6b3aedebd119cb2eb.tar.gz bcm5719-llvm-91027008f1e2a2ef65be47c6b3aedebd119cb2eb.zip  | |
Add an ARMUtils.h file to house utility functions for the ARM/Thumb Instruction Set Architecture.
llvm-svn: 124131
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/ARMUtils.h')
| -rw-r--r-- | lldb/source/Plugins/Process/Utility/ARMUtils.h | 23 | 
1 files changed, 23 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Utility/ARMUtils.h b/lldb/source/Plugins/Process/Utility/ARMUtils.h new file mode 100644 index 00000000000..5b10b31b2f3 --- /dev/null +++ b/lldb/source/Plugins/Process/Utility/ARMUtils.h @@ -0,0 +1,23 @@ +//===-- lldb_ARMUtils.h -----------------------------------------*- C++ -*-===// +// +//                     The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef lldb_ARMUtils_h_ +#define lldb_ARMUtils_h_ + +// Utility functions for the ARM/Thumb Instruction Set Architecture. + +namespace lldb_private { + +// This function performs the check for the register numbers 13 and 15 that are +// not permitted for many Thumb register specifiers. +static inline bool BadReg(uint32_t n) { return n == 13 || n == 15; } + +}   // namespace lldb_private + +#endif  // lldb_ARMUtils_h_  | 

