aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMSubtarget.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2015-10-28 22:51:16 +0000
committerTim Northover <tnorthover@apple.com>2015-10-28 22:51:16 +0000
commit8b40366b54bd454501e7fb1fb2d8118869e1b75e (patch)
treed68a9987551861430386dba7c8a4070075d480ad /llvm/lib/Target/ARM/ARMSubtarget.cpp
parente0ccdc6de93e879723c3b1af658913cbc0b8fbdc (diff)
downloadllvm-8b40366b54bd454501e7fb1fb2d8118869e1b75e.zip
llvm-8b40366b54bd454501e7fb1fb2d8118869e1b75e.tar.gz
llvm-8b40366b54bd454501e7fb1fb2d8118869e1b75e.tar.bz2
ARM: teach backend about WatchOS and TvOS libcalls.
The most substantial changes are again for watchOS: libcalls are hard-float if needed and sincos has a different calling convention. llvm-svn: 251571
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp
index aea452c..84d3ebc 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.cpp
+++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp
@@ -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 {