summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsMachineFunction.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-05-12 03:22:13 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-05-12 03:22:13 +0000
commit3ecc5273c1484e5ec72b72068f384924db7d161c (patch)
tree62dc502c3f49c93e3c329fc3dceede7538896585 /llvm/lib/Target/Mips/MipsMachineFunction.cpp
parent2e31e036b620410b7dee26937632a361e42f505e (diff)
downloadbcm5719-llvm-3ecc5273c1484e5ec72b72068f384924db7d161c.tar.gz
bcm5719-llvm-3ecc5273c1484e5ec72b72068f384924db7d161c.zip
Delete all functions that are no longer needed in MipsFunctionInfo, including
the ones that get or set the frame index for the $gp save slot. Remove the piece of code in MipsFunctionInfo::getGlobalBaseReg() which returns GP. This function should always return a virtual register. llvm-svn: 156695
Diffstat (limited to 'llvm/lib/Target/Mips/MipsMachineFunction.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsMachineFunction.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Target/Mips/MipsMachineFunction.cpp b/llvm/lib/Target/Mips/MipsMachineFunction.cpp
index 8535b290b43..e3746d4a420 100644
--- a/llvm/lib/Target/Mips/MipsMachineFunction.cpp
+++ b/llvm/lib/Target/Mips/MipsMachineFunction.cpp
@@ -22,10 +22,6 @@ static cl::opt<bool>
FixGlobalBaseReg("mips-fix-global-base-reg", cl::Hidden, cl::init(true),
cl::desc("Always use $gp as the global base register."));
-bool MipsFunctionInfo::globalBaseRegFixed() const {
- return FixGlobalBaseReg;
-}
-
bool MipsFunctionInfo::globalBaseRegSet() const {
return GlobalBaseReg;
}
@@ -37,9 +33,6 @@ unsigned MipsFunctionInfo::getGlobalBaseReg() {
const MipsSubtarget &ST = MF.getTarget().getSubtarget<MipsSubtarget>();
- if (FixGlobalBaseReg && ST.isABI_O32()) // $gp is the global base register.
- return GlobalBaseReg = Mips::GP;
-
const TargetRegisterClass *RC = ST.isABI_N64() ?
(const TargetRegisterClass*)&Mips::CPU64RegsRegClass :
(const TargetRegisterClass*)&Mips::CPURegsRegClass;
OpenPOWER on IntegriCloud