summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMSubtarget.h
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2018-07-18 12:36:25 +0000
committerTim Northover <tnorthover@apple.com>2018-07-18 12:36:25 +0000
commit097a3e3d957f1539c7ccb7c417300e9f838f4b28 (patch)
tree0fa030ec07de24d06470579e9e2d0b0bf99784b7 /llvm/lib/Target/ARM/ARMSubtarget.h
parent330d887d72f4a298bef86c4d3fd6f628e5bc9e2c (diff)
downloadbcm5719-llvm-097a3e3d957f1539c7ccb7c417300e9f838f4b28.tar.gz
bcm5719-llvm-097a3e3d957f1539c7ccb7c417300e9f838f4b28.zip
ARM: deduplicate hard-float detection code. NFC.
ARMSubtarget had a copy/pasted block to determine whether the target was hard-float, but it just delegated to triple features anyway so it's better at the TargetMachine level. llvm-svn: 337384
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.h')
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h
index d665f9355ee..93856e3dc38 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.h
+++ b/llvm/lib/Target/ARM/ARMSubtarget.h
@@ -666,13 +666,7 @@ public:
!isTargetDarwin() && !isTargetWindows();
}
- bool isTargetHardFloat() const {
- // FIXME: this is invalid for WindowsCE
- return TargetTriple.getEnvironment() == Triple::GNUEABIHF ||
- TargetTriple.getEnvironment() == Triple::MuslEABIHF ||
- TargetTriple.getEnvironment() == Triple::EABIHF ||
- isTargetWindows() || isAAPCS16_ABI();
- }
+ bool isTargetHardFloat() const;
bool isTargetAndroid() const { return TargetTriple.isAndroid(); }
OpenPOWER on IntegriCloud