From: Eric Christopher Date: Thu, 7 Jul 2016 01:49:57 +0000 (+0000) Subject: Use the class definition for useSoftFloat. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=761e40a2cad5a10ff7e707201af8d880da688b8e;p=llvm Use the class definition for useSoftFloat. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274720 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index df215bc037b..398b938b751 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -80,7 +80,7 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM, // Set up the register classes. addRegisterClass(MVT::i32, &PPC::GPRCRegClass); - if (!Subtarget.useSoftFloat()) { + if (!useSoftFloat()) { addRegisterClass(MVT::f32, &PPC::F4RCRegClass); addRegisterClass(MVT::f64, &PPC::F8RCRegClass); } @@ -2837,7 +2837,7 @@ SDValue PPCTargetLowering::LowerFormalArguments_32SVR4( // Reserve space for the linkage area on the stack. unsigned LinkageSize = Subtarget.getFrameLowering()->getLinkageSize(); CCInfo.AllocateStack(LinkageSize, PtrByteSize); - if (Subtarget.useSoftFloat()) + if (useSoftFloat()) CCInfo.PreAnalyzeFormalArguments(Ins); CCInfo.AnalyzeFormalArguments(Ins, CC_PPC32_SVR4); @@ -2956,7 +2956,7 @@ SDValue PPCTargetLowering::LowerFormalArguments_32SVR4( }; unsigned NumFPArgRegs = array_lengthof(FPArgRegs); - if (Subtarget.useSoftFloat()) + if (useSoftFloat()) NumFPArgRegs = 0; FuncInfo->setVarArgsNumGPR(CCInfo.getFirstUnallocated(GPArgRegs)); @@ -4692,7 +4692,7 @@ SDValue PPCTargetLowering::LowerCall_32SVR4( // Reserve space for the linkage area on the stack. CCInfo.AllocateStack(Subtarget.getFrameLowering()->getLinkageSize(), PtrByteSize); - if (Subtarget.useSoftFloat()) + if (useSoftFloat()) CCInfo.PreAnalyzeCallOperands(Outs); if (isVarArg) {