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/MSP430/MSP430RegisterInfo.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/MSP430/MSP430RegisterInfo.h')
| -rw-r--r-- | llvm/lib/Target/MSP430/MSP430RegisterInfo.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430RegisterInfo.h b/llvm/lib/Target/MSP430/MSP430RegisterInfo.h index 3f88a696717..0cfa4a42bfe 100644 --- a/llvm/lib/Target/MSP430/MSP430RegisterInfo.h +++ b/llvm/lib/Target/MSP430/MSP430RegisterInfo.h @@ -26,8 +26,7 @@ public: MSP430RegisterInfo(); /// Code Generation virtual methods... - const MCPhysReg * - getCalleeSavedRegs(const MachineFunction *MF = nullptr) const override; + const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override; BitVector getReservedRegs(const MachineFunction &MF) const override; const TargetRegisterClass* |

