summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-12-05 00:22:35 +0000
committerEric Christopher <echristo@gmail.com>2014-12-05 00:22:35 +0000
commit66322e822c17648b22b6897e2960d1b16dd1382d (patch)
treebd4d34e60e2d02ce0790a7c015e44e3e2f3c9706 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parentb029c5101fb49b3577a1c322f42ef9fc616f25bf (diff)
downloadbcm5719-llvm-66322e822c17648b22b6897e2960d1b16dd1382d.tar.gz
bcm5719-llvm-66322e822c17648b22b6897e2960d1b16dd1382d.zip
Both of these subtargets have functions that check whether or
not the target is mach-o. Use them. llvm-svn: 223420
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index fe84f0d4f94..aab99073d9f 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -11107,7 +11107,7 @@ bool ARMTargetLowering::shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const {
// This has so far only been implemented for MachO.
bool ARMTargetLowering::useLoadStackGuardNode() const {
- return Subtarget->getTargetTriple().getObjectFormat() == Triple::MachO;
+ return Subtarget->isTargetMachO();
}
bool ARMTargetLowering::canCombineStoreAndExtract(Type *VectorTy, Value *Idx,
OpenPOWER on IntegriCloud