diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-03-11 21:41:28 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-03-11 21:41:28 +0000 |
| commit | 7af9528747df139d0662f7c1bdeb9078aab0009d (patch) | |
| tree | af103c1fce48f063bd3630cc12d5728b960f1124 /llvm/lib/Target/SystemZ | |
| parent | d987cd2f3141e3ed98320d3fe30baefe1d29d66d (diff) | |
| download | bcm5719-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/SystemZ')
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZRegisterInfo.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.h b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.h index 212fe91f38a..a782255ba41 100644 --- a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.h +++ b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.h @@ -43,8 +43,7 @@ public: bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override { return true; } - const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF = nullptr) const - override; + const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override; const uint32_t *getCallPreservedMask(CallingConv::ID CC) const override; BitVector getReservedRegs(const MachineFunction &MF) const override; void eliminateFrameIndex(MachineBasicBlock::iterator MI, |

