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