summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-03-11 21:41:28 +0000
committerEric Christopher <echristo@gmail.com>2015-03-11 21:41:28 +0000
commit7af9528747df139d0662f7c1bdeb9078aab0009d (patch)
treeaf103c1fce48f063bd3630cc12d5728b960f1124 /llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
parentd987cd2f3141e3ed98320d3fe30baefe1d29d66d (diff)
downloadbcm5719-llvm-7af9528747df139d0662f7c1bdeb9078aab0009d.tar.gz
bcm5719-llvm-7af9528747df139d0662f7c1bdeb9078aab0009d.zip
Have getCalleeSavedRegs take a non-null MachineFunction all the
time. The target independent code was passing in one all the time and targets weren't checking validity before using. Update a few calls to pass in a MachineFunction where necessary. llvm-svn: 231970
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
index de7faf51250..c8c01d1b6c0 100644
--- a/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
@@ -63,8 +63,6 @@ ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
const MCPhysReg *RegList =
STI.isTargetDarwin() ? CSR_iOS_SaveList : CSR_AAPCS_SaveList;
- if (!MF) return RegList;
-
const Function *F = MF->getFunction();
if (F->getCallingConv() == CallingConv::GHC) {
// GHC set of callee saved regs is empty as all those regs are
OpenPOWER on IntegriCloud