mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Include temp. values when computing max. size of stack frame!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2070 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -124,7 +124,7 @@ MachineCodeForMethod::MachineCodeForMethod(const Method* _M,
|
||||
method(_M), compiledAsLeaf(false), staticStackSize(0),
|
||||
automaticVarsSize(0), regSpillsSize(0),
|
||||
currentOptionalArgsSize(0), maxOptionalArgsSize(0),
|
||||
currentTmpValuesSize(0)
|
||||
currentTmpValuesSize(0), maxTmpValuesSize(0)
|
||||
{
|
||||
maxOptionalArgsSize = ComputeMaxOptionalArgsSize(target, method);
|
||||
staticStackSize = maxOptionalArgsSize
|
||||
@ -284,14 +284,14 @@ MachineCodeForMethod::pushTempValue(const TargetMachine& target,
|
||||
|
||||
offset = growUp ? firstTmpOffset + offset : firstTmpOffset - offset;
|
||||
|
||||
currentTmpValuesSize += size;
|
||||
incrementTmpAreaSize(size);
|
||||
return offset;
|
||||
}
|
||||
|
||||
void
|
||||
MachineCodeForMethod::popAllTempValues(const TargetMachine& target)
|
||||
{
|
||||
currentTmpValuesSize = 0;
|
||||
resetTmpAreaSize();
|
||||
}
|
||||
|
||||
int
|
||||
|
Reference in New Issue
Block a user