diff options
author | Matthias Braun <matze@braunis.de> | 2017-12-18 23:33:28 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2017-12-18 23:33:28 +0000 |
commit | c2b744f594ce5ea93412db377fbd699f6496db69 (patch) | |
tree | 13b78000bc54f537feceb541c0243b14059fa2a9 /lib | |
parent | 537c6eec368b505ff57db13a6b0d257019dbce93 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/TargetLoweringBase.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/TargetLoweringBase.cpp b/lib/CodeGen/TargetLoweringBase.cpp index 5087e4a5ddd..133d0c5a497 100644 --- a/lib/CodeGen/TargetLoweringBase.cpp +++ b/lib/CodeGen/TargetLoweringBase.cpp @@ -91,12 +91,13 @@ static cl::opt<unsigned> 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; } |