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/Sparc/SparcRegisterInfo.h | |
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/Sparc/SparcRegisterInfo.h')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcRegisterInfo.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/SparcRegisterInfo.h b/llvm/lib/Target/Sparc/SparcRegisterInfo.h index 63567b08bc1..bf3df5fea9a 100644 --- a/llvm/lib/Target/Sparc/SparcRegisterInfo.h +++ b/llvm/lib/Target/Sparc/SparcRegisterInfo.h @@ -31,8 +31,7 @@ struct SparcRegisterInfo : public SparcGenRegisterInfo { SparcRegisterInfo(SparcSubtarget &st); /// Code Generation virtual methods... - 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; const uint32_t* getRTCallPreservedMask(CallingConv::ID CC) const; |