Skip to content

Commit

Permalink
Lanai: Remove unused method
Browse files Browse the repository at this point in the history
This was depending on the MachineFunction at MachineFunctionInfo
construction, which will soon be disallowed.
  • Loading branch information
arsenm committed Jun 18, 2020
1 parent fe0a85f commit 243303f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
9 changes: 0 additions & 9 deletions llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,3 @@
using namespace llvm;

void LanaiMachineFunctionInfo::anchor() {}

Register LanaiMachineFunctionInfo::getGlobalBaseReg() {
// Return if it has already been initialized.
if (GlobalBaseReg)
return GlobalBaseReg;

return GlobalBaseReg =
MF.getRegInfo().createVirtualRegister(&Lanai::GPRRegClass);
}
6 changes: 1 addition & 5 deletions llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ namespace llvm {
class LanaiMachineFunctionInfo : public MachineFunctionInfo {
virtual void anchor();

MachineFunction &MF;

// SRetReturnReg - Lanai ABI require that sret lowering includes
// returning the value of the returned struct in a register. This field
// holds the virtual register into which the sret argument is passed.
Expand All @@ -41,13 +39,11 @@ class LanaiMachineFunctionInfo : public MachineFunctionInfo {

public:
explicit LanaiMachineFunctionInfo(MachineFunction &MF)
: MF(MF), VarArgsFrameIndex(0) {}
: VarArgsFrameIndex(0) {}

Register getSRetReturnReg() const { return SRetReturnReg; }
void setSRetReturnReg(Register Reg) { SRetReturnReg = Reg; }

Register getGlobalBaseReg();

int getVarArgsFrameIndex() const { return VarArgsFrameIndex; }
void setVarArgsFrameIndex(int Index) { VarArgsFrameIndex = Index; }
};
Expand Down

0 comments on commit 243303f

Please sign in to comment.