ARM: teach backend about WatchOS and TvOS libcalls.
[oota-llvm.git] / lib / Target / ARM / ARMSubtarget.cpp
index aea452cdbc581d9cdb08eba40a820f9c31cfee6b..84d3ebcc681c3f3f8835f606bfe37e00fa5ebcf6 100644 (file)
@@ -299,7 +299,8 @@ unsigned ARMSubtarget::getMispredictionPenalty() const {
 }
 
 bool ARMSubtarget::hasSinCos() const {
-  return getTargetTriple().isiOS() && !getTargetTriple().isOSVersionLT(7, 0);
+  return isTargetWatchOS() ||
+    (isTargetIOS() && !getTargetTriple().isOSVersionLT(7, 0));
 }
 
 bool ARMSubtarget::enableMachineScheduler() const {