Both of these subtargets have functions that check whether or
authorEric Christopher <echristo@gmail.com>
Fri, 5 Dec 2014 00:22:35 +0000 (00:22 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 5 Dec 2014 00:22:35 +0000 (00:22 +0000)
not the target is mach-o. Use them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223420 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp
lib/Target/X86/X86ISelLowering.cpp

index fe84f0d4f94212ff9118736b63d9282a9b9c379e..aab99073d9f5a3a88cb8f0b79029e1848d66e513 100644 (file)
@@ -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,
index 9409626124df359d66ce28efe7f074051fb1d412..3a984e095328639aefc4f77cea624f59ac947422 100644 (file)
@@ -1688,8 +1688,7 @@ void X86TargetLowering::resetOperationActions() {
 
 // This has so far only been implemented for 64-bit MachO.
 bool X86TargetLowering::useLoadStackGuardNode() const {
-  return Subtarget->getTargetTriple().getObjectFormat() == Triple::MachO &&
-         Subtarget->is64Bit();
+  return Subtarget->isTargetMacho() && Subtarget->is64Bit();
 }
 
 TargetLoweringBase::LegalizeTypeAction