mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-24 09:29:42 +00:00
[C++11,ARM64] Range based for loops in frame lowering.
No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7e2d11d345
commit
cbc64ac10e
@ -161,11 +161,9 @@ ARM64FrameLowering::emitCalleeSavedFrameMoves(MachineBasicBlock &MBB,
|
||||
// Calculate offsets.
|
||||
int64_t saveAreaOffset = (HasFP ? 2 : 1) * stackGrowth;
|
||||
unsigned TotalSkipped = 0;
|
||||
for (std::vector<CalleeSavedInfo>::const_iterator I = CSI.begin(),
|
||||
E = CSI.end();
|
||||
I != E; ++I) {
|
||||
unsigned Reg = I->getReg();
|
||||
int64_t Offset = MFI->getObjectOffset(I->getFrameIdx()) -
|
||||
for (const auto &Info : CSI) {
|
||||
unsigned Reg = Info.getReg();
|
||||
int64_t Offset = MFI->getObjectOffset(Info.getFrameIdx()) -
|
||||
getOffsetOfLocalArea() + saveAreaOffset;
|
||||
|
||||
// Don't output a new CFI directive if we're re-saving the frame pointer or
|
||||
|
Loading…
Reference in New Issue
Block a user