diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 | 
| commit | 044eb2f6afba375a914ac9d8024f8f5142bb912e (patch) | |
| tree | 1475247dc9f9fe5be155ebd4c9069c75aadf8c20 /lib/Target/SystemZ/SystemZFrameLowering.cpp | |
| parent | eb70dddbd77e120e5d490bd8fbe7ff3f8fa81c6b (diff) | |
Notes
Diffstat (limited to 'lib/Target/SystemZ/SystemZFrameLowering.cpp')
| -rw-r--r-- | lib/Target/SystemZ/SystemZFrameLowering.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/SystemZ/SystemZFrameLowering.cpp b/lib/Target/SystemZ/SystemZFrameLowering.cpp index 0cb2b5a14ce7..b600aa61cd0b 100644 --- a/lib/Target/SystemZ/SystemZFrameLowering.cpp +++ b/lib/Target/SystemZ/SystemZFrameLowering.cpp @@ -71,7 +71,7 @@ void SystemZFrameLowering::determineCalleeSaves(MachineFunction &MF,    const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();    bool HasFP = hasFP(MF);    SystemZMachineFunctionInfo *MFI = MF.getInfo<SystemZMachineFunctionInfo>(); -  bool IsVarArg = MF.getFunction()->isVarArg(); +  bool IsVarArg = MF.getFunction().isVarArg();    // va_start stores incoming FPR varargs in the normal way, but delegates    // the saving of incoming GPR varargs to spillCalleeSavedRegisters(). @@ -139,7 +139,7 @@ spillCalleeSavedRegisters(MachineBasicBlock &MBB,    MachineFunction &MF = *MBB.getParent();    const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo();    SystemZMachineFunctionInfo *ZFI = MF.getInfo<SystemZMachineFunctionInfo>(); -  bool IsVarArg = MF.getFunction()->isVarArg(); +  bool IsVarArg = MF.getFunction().isVarArg();    DebugLoc DL;    // Scan the call-saved GPRs and find the bounds of the register spill area. @@ -220,7 +220,7 @@ spillCalleeSavedRegisters(MachineBasicBlock &MBB,  bool SystemZFrameLowering::  restoreCalleeSavedRegisters(MachineBasicBlock &MBB,                              MachineBasicBlock::iterator MBBI, -                            const std::vector<CalleeSavedInfo> &CSI, +                            std::vector<CalleeSavedInfo> &CSI,                              const TargetRegisterInfo *TRI) const {    if (CSI.empty())      return false; @@ -374,7 +374,7 @@ void SystemZFrameLowering::emitPrologue(MachineFunction &MF,    uint64_t StackSize = getAllocatedStackSize(MF);    if (StackSize) {      // Determine if we want to store a backchain. -    bool StoreBackchain = MF.getFunction()->hasFnAttribute("backchain"); +    bool StoreBackchain = MF.getFunction().hasFnAttribute("backchain");      // If we need backchain, save current stack pointer.  R1 is free at this      // point.  | 
