Skip to content

Commit

Permalink
TargetLoweringBase: Remove unnecessary watchos exception; NFC
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MatzeB committed Dec 18, 2017
1 parent 537c6ee commit c2b744f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/CodeGen/TargetLoweringBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c2b744f

Please sign in to comment.