From 7e9e1b3e1f44752179c4dc58e55ad480d7932eac Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Mon, 8 Jun 2009 20:31:02 +0000 Subject: [PATCH] Add helper for checking of Thumb1 mode llvm-svn: 73080 --- lib/Target/ARM/ARMSubtarget.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h index 8b469cff77d..fcf3490e15f 100644 --- a/lib/Target/ARM/ARMSubtarget.h +++ b/lib/Target/ARM/ARMSubtarget.h @@ -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; }