From: Anton Korobeynikov Date: Mon, 8 Jun 2009 20:31:02 +0000 (+0000) Subject: Add helper for checking of Thumb1 mode X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a7b0ded2a26003d91db6c58d6ad945a39f70585c;p=oota-llvm.git Add helper for checking of Thumb1 mode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73080 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }