[llvm] 243303f - Lanai: Remove unused method
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 18 07:48:21 PDT 2020
Author: Matt Arsenault
Date: 2020-06-18T10:48:14-04:00
New Revision: 243303f8d7952b5928659af8079949bb89fcabf2
URL: https://github.com/llvm/llvm-project/commit/243303f8d7952b5928659af8079949bb89fcabf2
DIFF: https://github.com/llvm/llvm-project/commit/243303f8d7952b5928659af8079949bb89fcabf2.diff
LOG: Lanai: Remove unused method
This was depending on the MachineFunction at MachineFunctionInfo
construction, which will soon be disallowed.
Added:
Modified:
llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.cpp
llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.cpp b/llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.cpp
index 8b991bc00bad..eeef1d919925 100644
--- a/llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.cpp
+++ b/llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.cpp
@@ -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);
-}
diff --git a/llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.h b/llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.h
index d4baec2768a1..de712637b5a4 100644
--- a/llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.h
+++ b/llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.h
@@ -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.
@@ -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; }
};
More information about the llvm-commits
mailing list