summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2013-12-16 18:51:28 +0000
committerJoerg Sonnenberger <joerg@bec.de>2013-12-16 18:51:28 +0000
commit8fe41b731968da51e9fb2b0b889fe49df6c23649 (patch)
tree58ce1d0b345603d6628b3b78416039687af0250a /llvm/lib/Target/ARM
parent0c1652dabd56bf8d60e693c4dd6675c65cbf1370 (diff)
downloadbcm5719-llvm-8fe41b731968da51e9fb2b0b889fe49df6c23649.tar.gz
bcm5719-llvm-8fe41b731968da51e9fb2b0b889fe49df6c23649.zip
Recognize EABIHF as environment and use it for RTAPI + VFP.
llvm-svn: 197405
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.cpp1
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp
index a0bf7a63e83..3c5bed52b7b 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.cpp
+++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp
@@ -192,6 +192,7 @@ void ARMSubtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) {
switch (TargetTriple.getEnvironment()) {
case Triple::Android:
case Triple::EABI:
+ case Triple::EABIHF:
case Triple::GNUEABI:
case Triple::GNUEABIHF:
TargetABI = ARM_ABI_AAPCS;
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h
index 45a7a1aaaec..42bc155d3be 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.h
+++ b/llvm/lib/Target/ARM/ARMSubtarget.h
@@ -317,7 +317,8 @@ public:
// even for GNUEABI, so we can make a distinction here and still conform to
// the EABI on GNU (and Android) mode. This requires change in Clang, too.
bool isTargetAEABI() const {
- return TargetTriple.getEnvironment() == Triple::EABI;
+ return TargetTriple.getEnvironment() == Triple::EABI ||
+ TargetTriple.getEnvironment() == Triple::EABIHF;
}
bool isAPCS_ABI() const { return TargetABI == ARM_ABI_APCS; }
OpenPOWER on IntegriCloud