Both of these subtargets have functions that check whether or

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
This commit is contained in:
Eric Christopher 2014-12-05 00:22:35 +00:00
parent aa8cddcd3a
commit 62b1007007
2 changed files with 2 additions and 3 deletions

View 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,

View 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