mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
isDarwin -> isTargetDarwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5be54b00bd
commit
970a419633
@ -146,7 +146,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
||||
setOperationAction(ISD::LOCATION, MVT::Other, Expand);
|
||||
setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand);
|
||||
// FIXME - use subtarget debug flags
|
||||
if (Subtarget->isDarwin())
|
||||
if (Subtarget->isTargetDarwin())
|
||||
setOperationAction(ISD::DEBUG_LABEL, MVT::Other, Expand);
|
||||
|
||||
setOperationAction(ISD::RET, MVT::Other, Custom);
|
||||
@ -470,7 +470,7 @@ SDOperand ARMTargetLowering::LowerCALL(SDOperand Op, SelectionDAG &DAG) {
|
||||
isDirect = true;
|
||||
bool isExt = (GV->isExternal() || GV->hasWeakLinkage() ||
|
||||
GV->hasLinkOnceLinkage());
|
||||
bool isStub = (isExt && Subtarget->isDarwin()) &&
|
||||
bool isStub = (isExt && Subtarget->isTargetDarwin()) &&
|
||||
getTargetMachine().getRelocationModel() != Reloc::Static;
|
||||
isARMFunc = !Subtarget->isThumb() || isStub;
|
||||
// Wrap it since tBX takes a register source operand.
|
||||
@ -479,7 +479,7 @@ SDOperand ARMTargetLowering::LowerCALL(SDOperand Op, SelectionDAG &DAG) {
|
||||
} else if (ExternalSymbolSDNode *S = dyn_cast<ExternalSymbolSDNode>(Callee)) {
|
||||
Callee = DAG.getTargetExternalSymbol(S->getSymbol(), getPointerTy());
|
||||
isDirect = true;
|
||||
bool isStub = Subtarget->isDarwin() &&
|
||||
bool isStub = Subtarget->isTargetDarwin() &&
|
||||
getTargetMachine().getRelocationModel() != Reloc::Static;
|
||||
isARMFunc = !Subtarget->isThumb() || isStub;
|
||||
// Wrap it since tBX takes a register source operand.
|
||||
@ -641,7 +641,7 @@ SDOperand ARMTargetLowering::LowerGlobalAddress(SDOperand Op,
|
||||
MVT::ValueType PtrVT = getPointerTy();
|
||||
GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
|
||||
Reloc::Model RelocM = getTargetMachine().getRelocationModel();
|
||||
bool IsIndirect = Subtarget->isDarwin() && GVIsIndirectSymbol(GV);
|
||||
bool IsIndirect = Subtarget->isTargetDarwin() && GVIsIndirectSymbol(GV);
|
||||
SDOperand CPAddr;
|
||||
if (RelocM == Reloc::Static)
|
||||
CPAddr = DAG.getTargetConstantPool(GV, PtrVT, 2);
|
||||
|
@ -256,7 +256,7 @@ const unsigned* ARMRegisterInfo::getCalleeSavedRegs() const {
|
||||
ARM::D11, ARM::D10, ARM::D9, ARM::D8,
|
||||
0
|
||||
};
|
||||
return STI.isDarwin() ? DarwinCalleeSavedRegs : CalleeSavedRegs;
|
||||
return STI.isTargetDarwin() ? DarwinCalleeSavedRegs : CalleeSavedRegs;
|
||||
}
|
||||
|
||||
const TargetRegisterClass* const *
|
||||
@ -807,7 +807,7 @@ static void movePastCSLoadStoreOps(MachineBasicBlock &MBB,
|
||||
case ARM::R9:
|
||||
case ARM::R10:
|
||||
case ARM::R11:
|
||||
Category = STI.isDarwin() ? 2 : 1;
|
||||
Category = STI.isTargetDarwin() ? 2 : 1;
|
||||
break;
|
||||
case ARM::D8:
|
||||
case ARM::D9:
|
||||
@ -870,7 +870,7 @@ void ARMRegisterInfo::emitPrologue(MachineFunction &MF) const {
|
||||
case ARM::R11:
|
||||
if (Reg == FramePtr)
|
||||
FramePtrSpillFI = FI;
|
||||
if (STI.isDarwin()) {
|
||||
if (STI.isTargetDarwin()) {
|
||||
AFI->addGPRCalleeSavedArea2Frame(FI);
|
||||
GPRCS2Size += 4;
|
||||
} else {
|
||||
|
@ -35,7 +35,7 @@ namespace {
|
||||
ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS)
|
||||
: Subtarget(M, FS), DataLayout("e-p:32:32-d:32"), InstrInfo(Subtarget),
|
||||
FrameInfo(Subtarget) {
|
||||
if (Subtarget.isDarwin())
|
||||
if (Subtarget.isTargetDarwin())
|
||||
NoFramePointerElim = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user