summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMTargetMachine.h
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2018-07-18 12:37:04 +0000
committerTim Northover <tnorthover@apple.com>2018-07-18 12:37:04 +0000
commitd4abd14c1bfb271800e23bcd10ca2ff42027c290 (patch)
tree66d1248e6ae6fc4c39317d4b7674a952bdf4798f /llvm/lib/Target/ARM/ARMTargetMachine.h
parent097a3e3d957f1539c7ccb7c417300e9f838f4b28 (diff)
downloadbcm5719-llvm-d4abd14c1bfb271800e23bcd10ca2ff42027c290.tar.gz
bcm5719-llvm-d4abd14c1bfb271800e23bcd10ca2ff42027c290.zip
ARM: switch armv7em triple to hard-float defaults and libcalls.
We were emitting incorrect calls to libm functions that LLVM had decided it knew about because the default is soft-float. llvm-svn: 337385
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetMachine.h')
-rw-r--r--llvm/lib/Target/ARM/ARMTargetMachine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetMachine.h b/llvm/lib/Target/ARM/ARMTargetMachine.h
index 811fd5bb339..7685a689158 100644
--- a/llvm/lib/Target/ARM/ARMTargetMachine.h
+++ b/llvm/lib/Target/ARM/ARMTargetMachine.h
@@ -66,6 +66,7 @@ public:
return TargetTriple.getEnvironment() == Triple::GNUEABIHF ||
TargetTriple.getEnvironment() == Triple::MuslEABIHF ||
TargetTriple.getEnvironment() == Triple::EABIHF ||
+ TargetTriple.getSubArch() == Triple::ARMSubArch_v7em ||
TargetTriple.isOSWindows() ||
TargetABI == ARMBaseTargetMachine::ARM_ABI_AAPCS16;
}
OpenPOWER on IntegriCloud