From 0282091c9fe7b79adf51964817a19de265c609d7 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 18 Dec 2017 23:33:28 +0000 Subject: TargetLoweringBase: Remove unnecessary watchos exception; NFC WatchOS isn't report as iOS (as opposed to tvos) so the exception I added in my last commit wasn't necessary after all. llvm-svn: 321041 --- llvm/lib/CodeGen/TargetLoweringBase.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp') diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index 5087e4a..133d0c5 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -91,12 +91,13 @@ static cl::opt OptsizeJumpTableDensity( static bool darwinHasSinCos(const Triple &TT) { assert(TT.isOSDarwin() && "should be called with darwin triple"); - // macos < 10.9 has no sincos_stret and we don't bother for 32bit code. + // Macos < 10.9 has no sincos_stret and we don't bother for 32bit code. if (TT.isMacOSX()) return !TT.isMacOSXVersionLT(10, 9) && TT.isArch64Bit(); - // ios < 7.0 has no sincos_stret (watchos reports version 2.0 but is fine). + // iOS < 7.0 has no sincos_stret. if (TT.isiOS()) - return !TT.isOSVersionLT(7, 0) || TT.isWatchOS(); + return !TT.isOSVersionLT(7, 0); + // Any other darwin such as WatchOS/TvOS is new enough. return true; } -- cgit v1.1