diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:17:04 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:17:04 +0000 |
| commit | b915e9e0fc85ba6f398b3fab0db6a81a8913af94 (patch) | |
| tree | 98b8f811c7aff2547cab8642daf372d6c59502fb /lib/Target/XCore/XCoreMachineFunctionInfo.cpp | |
| parent | 6421cca32f69ac849537a3cff78c352195e99f1b (diff) | |
Notes
Diffstat (limited to 'lib/Target/XCore/XCoreMachineFunctionInfo.cpp')
| -rw-r--r-- | lib/Target/XCore/XCoreMachineFunctionInfo.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Target/XCore/XCoreMachineFunctionInfo.cpp b/lib/Target/XCore/XCoreMachineFunctionInfo.cpp index 6c770969e32e..e91536ca1e83 100644 --- a/lib/Target/XCore/XCoreMachineFunctionInfo.cpp +++ b/lib/Target/XCore/XCoreMachineFunctionInfo.cpp @@ -17,7 +17,7 @@ void XCoreFunctionInfo::anchor() { } bool XCoreFunctionInfo::isLargeFrame(const MachineFunction &MF) const { if (CachedEStackSize == -1) { - CachedEStackSize = MF.getFrameInfo()->estimateStackSize(MF); + CachedEStackSize = MF.getFrameInfo().estimateStackSize(MF); } // isLargeFrame() is used when deciding if spill slots should be added to // allow eliminateFrameIndex() to scavenge registers. @@ -36,12 +36,12 @@ int XCoreFunctionInfo::createLRSpillSlot(MachineFunction &MF) { return LRSpillSlot; } const TargetRegisterClass *RC = &XCore::GRRegsRegClass; - MachineFrameInfo *MFI = MF.getFrameInfo(); + MachineFrameInfo &MFI = MF.getFrameInfo(); if (! MF.getFunction()->isVarArg()) { // A fixed offset of 0 allows us to save / restore LR using entsp / retsp. - LRSpillSlot = MFI->CreateFixedObject(RC->getSize(), 0, true); + LRSpillSlot = MFI.CreateFixedObject(RC->getSize(), 0, true); } else { - LRSpillSlot = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), true); + LRSpillSlot = MFI.CreateStackObject(RC->getSize(), RC->getAlignment(), true); } LRSpillSlotSet = true; return LRSpillSlot; @@ -52,8 +52,8 @@ int XCoreFunctionInfo::createFPSpillSlot(MachineFunction &MF) { return FPSpillSlot; } const TargetRegisterClass *RC = &XCore::GRRegsRegClass; - MachineFrameInfo *MFI = MF.getFrameInfo(); - FPSpillSlot = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), true); + MachineFrameInfo &MFI = MF.getFrameInfo(); + FPSpillSlot = MFI.CreateStackObject(RC->getSize(), RC->getAlignment(), true); FPSpillSlotSet = true; return FPSpillSlot; } @@ -63,9 +63,9 @@ const int* XCoreFunctionInfo::createEHSpillSlot(MachineFunction &MF) { return EHSpillSlot; } const TargetRegisterClass *RC = &XCore::GRRegsRegClass; - MachineFrameInfo *MFI = MF.getFrameInfo(); - EHSpillSlot[0] = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), true); - EHSpillSlot[1] = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), true); + MachineFrameInfo &MFI = MF.getFrameInfo(); + EHSpillSlot[0] = MFI.CreateStackObject(RC->getSize(), RC->getAlignment(), true); + EHSpillSlot[1] = MFI.CreateStackObject(RC->getSize(), RC->getAlignment(), true); EHSpillSlotSet = true; return EHSpillSlot; } |
