mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
Cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123475 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9a1ef4ef36
commit
e749911372
@ -291,10 +291,7 @@ void X86FrameLowering::emitCalleeSavedFrameMoves(MachineFunction &MF,
|
|||||||
bool HasFP = hasFP(MF);
|
bool HasFP = hasFP(MF);
|
||||||
|
|
||||||
// Calculate amount of bytes used for return address storing.
|
// Calculate amount of bytes used for return address storing.
|
||||||
int stackGrowth =
|
int stackGrowth = -TD->getPointerSize();
|
||||||
(TM.getFrameLowering()->getStackGrowthDirection() ==
|
|
||||||
TargetFrameLowering::StackGrowsUp ?
|
|
||||||
TD->getPointerSize() : -TD->getPointerSize());
|
|
||||||
|
|
||||||
// FIXME: This is dirty hack. The code itself is pretty mess right now.
|
// FIXME: This is dirty hack. The code itself is pretty mess right now.
|
||||||
// It should be rewritten from scratch and generalized sometimes.
|
// It should be rewritten from scratch and generalized sometimes.
|
||||||
@ -467,7 +464,6 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
|
|||||||
MachineLocation SPSrc(MachineLocation::VirtualFP, 2 * stackGrowth);
|
MachineLocation SPSrc(MachineLocation::VirtualFP, 2 * stackGrowth);
|
||||||
Moves.push_back(MachineMove(FrameLabel, SPDst, SPSrc));
|
Moves.push_back(MachineMove(FrameLabel, SPDst, SPSrc));
|
||||||
} else {
|
} else {
|
||||||
// FIXME: Verify & implement for FP
|
|
||||||
MachineLocation SPDst(StackPtr);
|
MachineLocation SPDst(StackPtr);
|
||||||
MachineLocation SPSrc(StackPtr, stackGrowth);
|
MachineLocation SPSrc(StackPtr, stackGrowth);
|
||||||
Moves.push_back(MachineMove(FrameLabel, SPDst, SPSrc));
|
Moves.push_back(MachineMove(FrameLabel, SPDst, SPSrc));
|
||||||
@ -627,7 +623,6 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
|
|||||||
-StackSize + stackGrowth);
|
-StackSize + stackGrowth);
|
||||||
Moves.push_back(MachineMove(Label, SPDst, SPSrc));
|
Moves.push_back(MachineMove(Label, SPDst, SPSrc));
|
||||||
} else {
|
} else {
|
||||||
// FIXME: Verify & implement for FP
|
|
||||||
MachineLocation SPDst(StackPtr);
|
MachineLocation SPDst(StackPtr);
|
||||||
MachineLocation SPSrc(StackPtr, stackGrowth);
|
MachineLocation SPSrc(StackPtr, stackGrowth);
|
||||||
Moves.push_back(MachineMove(Label, SPDst, SPSrc));
|
Moves.push_back(MachineMove(Label, SPDst, SPSrc));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user