summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMSubtarget.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2014-10-09 05:43:30 +0000
committerBob Wilson <bob.wilson@apple.com>2014-10-09 05:43:30 +0000
commit9868d71ffed33d15cf922a4e242fc8d94a286d61 (patch)
tree81999a8ac9a0a17c0b33bc2e11da49329ebec082 /llvm/lib/Target/ARM/ARMSubtarget.cpp
parent13314bf5269a41a583c0019fe74bb1cdb86e7d44 (diff)
downloadbcm5719-llvm-9868d71ffed33d15cf922a4e242fc8d94a286d61.tar.gz
bcm5719-llvm-9868d71ffed33d15cf922a4e242fc8d94a286d61.zip
Use triple's isiOS() and isOSDarwin() methods.
These methods are already used in lots of places. This makes things more consistent. NFC. llvm-svn: 219386
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp
index a26fba1d50d..a3ade981740 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.cpp
+++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp
@@ -395,8 +395,7 @@ unsigned ARMSubtarget::getMispredictionPenalty() const {
}
bool ARMSubtarget::hasSinCos() const {
- return getTargetTriple().getOS() == Triple::IOS &&
- !getTargetTriple().isOSVersionLT(7, 0);
+ return getTargetTriple().isiOS() && !getTargetTriple().isOSVersionLT(7, 0);
}
// This overrides the PostRAScheduler bit in the SchedModel for any CPU.
OpenPOWER on IntegriCloud