From d728ae0014a8a83e352a0c9faafa5abe0dc139d4 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Fri, 19 Oct 2012 21:18:38 +0000 Subject: [PATCH] [mips] Delete MipsFunctionInfo::MaxCallFrameSize which is no longer used. llvm-svn: 166339 --- lib/Target/Mips/MipsISelLowering.cpp | 4 ---- lib/Target/Mips/MipsMachineFunction.h | 7 +------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index 09498743f7a..cc069fed42b 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp @@ -2895,7 +2895,6 @@ MipsTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI, MachineFrameInfo *MFI = MF.getFrameInfo(); const TargetFrameLowering *TFL = MF.getTarget().getFrameLowering(); bool IsPIC = getTargetMachine().getRelocationModel() == Reloc::PIC_; - MipsFunctionInfo *MipsFI = MF.getInfo(); // Analyze operands of the call, assigning locations to each operand. SmallVector ArgLocs; @@ -2932,9 +2931,6 @@ MipsTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI, IsN64 ? Mips::SP_64 : Mips::SP, getPointerTy()); - if (MipsFI->getMaxCallFrameSize() < NextStackOffset) - MipsFI->setMaxCallFrameSize(NextStackOffset); - // With EABI is it possible to have 16 args on registers. SmallVector, 16> RegsToPass; SmallVector MemOpChains; diff --git a/lib/Target/Mips/MipsMachineFunction.h b/lib/Target/Mips/MipsMachineFunction.h index 93ce94803a0..5b766f22a80 100644 --- a/lib/Target/Mips/MipsMachineFunction.h +++ b/lib/Target/Mips/MipsMachineFunction.h @@ -46,15 +46,13 @@ class MipsFunctionInfo : public MachineFunctionInfo { // InArgFIRange: Range of indices of all frame objects created during call to // LowerFormalArguments. std::pair InArgFIRange; - unsigned MaxCallFrameSize; bool EmitNOAT; public: MipsFunctionInfo(MachineFunction& MF) : MF(MF), SRetReturnReg(0), GlobalBaseReg(0), - VarArgsFrameIndex(0), InArgFIRange(std::make_pair(-1, 0)), - MaxCallFrameSize(0), EmitNOAT(false) + VarArgsFrameIndex(0), InArgFIRange(std::make_pair(-1, 0)), EmitNOAT(false) {} bool isInArgFI(int FI) const { @@ -71,9 +69,6 @@ public: int getVarArgsFrameIndex() const { return VarArgsFrameIndex; } void setVarArgsFrameIndex(int Index) { VarArgsFrameIndex = Index; } - unsigned getMaxCallFrameSize() const { return MaxCallFrameSize; } - void setMaxCallFrameSize(unsigned S) { MaxCallFrameSize = S; } - bool getEmitNOAT() const { return EmitNOAT; } void setEmitNOAT() { EmitNOAT = true; } };