aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMSubtarget.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-07-02 06:38:40 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-07-02 06:38:40 +0000
commitb1b2abc0e7b2cc0f103c872ec6fadcb2cb370406 (patch)
treec6ba506414273d7e7239f290bdc169c6bbbee62b /lib/Target/ARM/ARMSubtarget.h
parent374cada5748190f8dc38216972674e61113e5e4c (diff)
downloadexternal_llvm-b1b2abc0e7b2cc0f103c872ec6fadcb2cb370406.zip
external_llvm-b1b2abc0e7b2cc0f103c872ec6fadcb2cb370406.tar.gz
external_llvm-b1b2abc0e7b2cc0f103c872ec6fadcb2cb370406.tar.bz2
Change the meaning of predicate hasThumb2 to mean thumb2 ISA is available, not that it's in thumb mode and thumb2 is available. Added isThumb2 predicate to replace the old predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.h')
-rw-r--r--lib/Target/ARM/ARMSubtarget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h
index c3cc7ff..5110b31 100644
--- a/lib/Target/ARM/ARMSubtarget.h
+++ b/lib/Target/ARM/ARMSubtarget.h
@@ -108,7 +108,8 @@ protected:
bool isThumb() const { return IsThumb; }
bool isThumb1Only() const { return IsThumb && (ThumbMode == Thumb1); }
- bool hasThumb2() const { return IsThumb && (ThumbMode >= Thumb2); }
+ bool isThumb2() const { return IsThumb && (ThumbMode >= Thumb2); }
+ bool hasThumb2() const { return ThumbMode >= Thumb2; }
bool isR9Reserved() const { return IsR9Reserved; }