From 9868d71ffed33d15cf922a4e242fc8d94a286d61 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Thu, 9 Oct 2014 05:43:30 +0000 Subject: 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 --- llvm/lib/Target/ARM/ARMSubtarget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Target/ARM/ARMSubtarget.cpp') 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. -- cgit v1.2.3