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/XCore/XCoreRegisterInfo.cpp | |
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/XCore/XCoreRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/XCore/XCoreRegisterInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp b/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp index 5c666ae59fb..1d569e8936d 100644 --- a/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp +++ b/llvm/lib/Target/XCore/XCoreRegisterInfo.cpp @@ -208,8 +208,8 @@ bool XCoreRegisterInfo::needsFrameMoves(const MachineFunction &MF) { MF.getFunction()->needsUnwindTableEntry(); } -const MCPhysReg* XCoreRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) - const { +const MCPhysReg * +XCoreRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { // The callee saved registers LR & FP are explicitly handled during // emitPrologue & emitEpilogue and related functions. static const MCPhysReg CalleeSavedRegs[] = { |