mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Instead of a virtual method call, lets try a direct constant reference
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15696 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "SparcV9Internals.h"
|
||||
#include "SparcV9RegClassInfo.h"
|
||||
#include "SparcV9RegInfo.h"
|
||||
#include "SparcV9FrameInfo.h"
|
||||
#include "SparcV9TargetMachine.h"
|
||||
#include "SparcV9TmpInstr.h"
|
||||
#include <iostream>
|
||||
@@ -492,7 +493,7 @@ void SparcV9RegInfo::colorMethodArgs(const Function *Meth,
|
||||
// a full double-word so the offset does not need to be adjusted.
|
||||
if (regType == FPSingleRegType) {
|
||||
unsigned argSize = target.getTargetData().getTypeSize(LR->getType());
|
||||
unsigned slotSize = frameInfo.getSizeOfEachArgOnStack();
|
||||
unsigned slotSize = SparcV9FrameInfo::SizeOfEachArgOnStack;
|
||||
assert(argSize <= slotSize && "Insufficient slot size!");
|
||||
offsetFromFP += slotSize - argSize;
|
||||
}
|
||||
@@ -550,7 +551,7 @@ void SparcV9RegInfo::colorMethodArgs(const Function *Meth,
|
||||
// a full double-word so the offset does not need to be adjusted.
|
||||
if (regType == FPSingleRegType) {
|
||||
unsigned argSize = target.getTargetData().getTypeSize(LR->getType());
|
||||
unsigned slotSize = frameInfo.getSizeOfEachArgOnStack();
|
||||
unsigned slotSize = SparcV9FrameInfo::SizeOfEachArgOnStack;
|
||||
assert(argSize <= slotSize && "Insufficient slot size!");
|
||||
offsetFromFP += slotSize - argSize;
|
||||
}
|
||||
|
Reference in New Issue
Block a user