llvm.org GIT mirror llvm / 970a419
isDarwin -> isTargetDarwin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33366 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
3 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
145145 setOperationAction(ISD::LOCATION, MVT::Other, Expand);
146146 setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand);
147147 // FIXME - use subtarget debug flags
148 if (Subtarget->isDarwin())
148 if (Subtarget->isTargetDarwin())
149149 setOperationAction(ISD::DEBUG_LABEL, MVT::Other, Expand);
150150
151151 setOperationAction(ISD::RET, MVT::Other, Custom);
469469 isDirect = true;
470470 bool isExt = (GV->isExternal() || GV->hasWeakLinkage() ||
471471 GV->hasLinkOnceLinkage());
472 bool isStub = (isExt && Subtarget->isDarwin()) &&
472 bool isStub = (isExt && Subtarget->isTargetDarwin()) &&
473473 getTargetMachine().getRelocationModel() != Reloc::Static;
474474 isARMFunc = !Subtarget->isThumb() || isStub;
475475 // Wrap it since tBX takes a register source operand.
478478 } else if (ExternalSymbolSDNode *S = dyn_cast(Callee)) {
479479 Callee = DAG.getTargetExternalSymbol(S->getSymbol(), getPointerTy());
480480 isDirect = true;
481 bool isStub = Subtarget->isDarwin() &&
481 bool isStub = Subtarget->isTargetDarwin() &&
482482 getTargetMachine().getRelocationModel() != Reloc::Static;
483483 isARMFunc = !Subtarget->isThumb() || isStub;
484484 // Wrap it since tBX takes a register source operand.
640640 MVT::ValueType PtrVT = getPointerTy();
641641 GlobalValue *GV = cast(Op)->getGlobal();
642642 Reloc::Model RelocM = getTargetMachine().getRelocationModel();
643 bool IsIndirect = Subtarget->isDarwin() && GVIsIndirectSymbol(GV);
643 bool IsIndirect = Subtarget->isTargetDarwin() && GVIsIndirectSymbol(GV);
644644 SDOperand CPAddr;
645645 if (RelocM == Reloc::Static)
646646 CPAddr = DAG.getTargetConstantPool(GV, PtrVT, 2);
255255 ARM::D11, ARM::D10, ARM::D9, ARM::D8,
256256 0
257257 };
258 return STI.isDarwin() ? DarwinCalleeSavedRegs : CalleeSavedRegs;
258 return STI.isTargetDarwin() ? DarwinCalleeSavedRegs : CalleeSavedRegs;
259259 }
260260
261261 const TargetRegisterClass* const *
806806 case ARM::R9:
807807 case ARM::R10:
808808 case ARM::R11:
809 Category = STI.isDarwin() ? 2 : 1;
809 Category = STI.isTargetDarwin() ? 2 : 1;
810810 break;
811811 case ARM::D8:
812812 case ARM::D9:
869869 case ARM::R11:
870870 if (Reg == FramePtr)
871871 FramePtrSpillFI = FI;
872 if (STI.isDarwin()) {
872 if (STI.isTargetDarwin()) {
873873 AFI->addGPRCalleeSavedArea2Frame(FI);
874874 GPRCS2Size += 4;
875875 } else {
3434 ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS)
3535 : Subtarget(M, FS), DataLayout("e-p:32:32-d:32"), InstrInfo(Subtarget),
3636 FrameInfo(Subtarget) {
37 if (Subtarget.isDarwin())
37 if (Subtarget.isTargetDarwin())
3838 NoFramePointerElim = true;
3939 }
4040