Add helper for checking of Thumb1 mode
authorAnton Korobeynikov <asl@math.spbu.ru>
Mon, 8 Jun 2009 20:31:02 +0000 (20:31 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Mon, 8 Jun 2009 20:31:02 +0000 (20:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73080 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMSubtarget.h

index 8b469cff77d82bc04df481204829ad7819a0948b..fcf3490e15fe1320d09effb2bebae5f02f99e9f9 100644 (file)
@@ -105,6 +105,7 @@ protected:
   bool isAAPCS_ABI() const { return TargetABI == ARM_ABI_AAPCS; }
 
   bool isThumb() const { return IsThumb; }
+  bool isThumb1() const { return IsThumb && (ThumbMode == Thumb1); }
   bool isThumb2() const { return IsThumb && (ThumbMode >= Thumb2); }
 
   bool useThumbBacktraces() const { return UseThumbBacktraces; }