mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Minor fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1892 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d198c47a0e
commit
e6d2c41d4c
@ -114,7 +114,7 @@ void InsertPrologEpilogCode::InsertEpilogCode(Method* method)
|
||||
assert(N == ndelays && "Cannot use epilog code for delay slots?");
|
||||
|
||||
// Append the epilog code to the end of the basic block.
|
||||
bbMvec.push_back(minstrVec[0]);
|
||||
bbMvec.insert(bbMvec.end(), minstrVec, minstrVec+N);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -165,10 +165,14 @@ int
|
||||
UltraSparcFrameInfo::getDynamicAreaOffset(MachineCodeForMethod& mcInfo,
|
||||
bool& pos) const
|
||||
{
|
||||
// dynamic stack area grows downwards starting at top of opt-args area
|
||||
// Dynamic stack area grows downwards starting at top of opt-args area.
|
||||
// The opt-args, required-args, and register-save areas are empty except
|
||||
// during calls and traps, so they are shifted downwards on each
|
||||
// dynamic-size alloca.
|
||||
pos = false;
|
||||
unsigned int optArgsSize = mcInfo.getMaxOptionalArgsSize();
|
||||
int offset = optArgsSize + FirstOptionalOutgoingArgOffsetFromSP;
|
||||
assert(offset % getStackFrameSizeAlignment() == 0);
|
||||
assert((offset - OFFSET) % getStackFrameSizeAlignment() == 0);
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user