[llvm-commits] [llvm] r73080 - /llvm/trunk/lib/Target/ARM/ARMSubtarget.h
Anton Korobeynikov
asl at math.spbu.ru
Mon Jun 8 13:31:02 PDT 2009
Author: asl
Date: Mon Jun 8 15:31:02 2009
New Revision: 73080
URL: http://llvm.org/viewvc/llvm-project?rev=73080&view=rev
Log:
Add helper for checking of Thumb1 mode
Modified:
llvm/trunk/lib/Target/ARM/ARMSubtarget.h
Modified: llvm/trunk/lib/Target/ARM/ARMSubtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMSubtarget.h?rev=73080&r1=73079&r2=73080&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMSubtarget.h (original)
+++ llvm/trunk/lib/Target/ARM/ARMSubtarget.h Mon Jun 8 15:31:02 2009
@@ -105,6 +105,7 @@
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; }
More information about the llvm-commits
mailing list