diff options
| author | 2017-01-24 08:32:59 +0000 | |
|---|---|---|
| committer | 2017-01-24 08:32:59 +0000 | |
| commit | 53d771aafdbe5b919f264f53cba3788e2c4cffd2 (patch) | |
| tree | 7eca39498be0ff1e3a6daf583cd9ca5886bb2636 /gnu/llvm/lib/Target/XCore/XCoreMachineFunctionInfo.cpp | |
| parent | In preparation of compiling our kernels with -ffreestanding, explicitly map (diff) | |
| download | wireguard-openbsd-53d771aafdbe5b919f264f53cba3788e2c4cffd2.tar.xz wireguard-openbsd-53d771aafdbe5b919f264f53cba3788e2c4cffd2.zip | |
Import LLVM 4.0.0 rc1 including clang and lld to help the current
development effort on OpenBSD/arm64.
Diffstat (limited to 'gnu/llvm/lib/Target/XCore/XCoreMachineFunctionInfo.cpp')
| -rw-r--r-- | gnu/llvm/lib/Target/XCore/XCoreMachineFunctionInfo.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gnu/llvm/lib/Target/XCore/XCoreMachineFunctionInfo.cpp b/gnu/llvm/lib/Target/XCore/XCoreMachineFunctionInfo.cpp index 6c770969e32..e91536ca1e8 100644 --- a/gnu/llvm/lib/Target/XCore/XCoreMachineFunctionInfo.cpp +++ b/gnu/llvm/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; } |
