diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2011-01-14 21:57:58 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2011-01-14 21:57:58 +0000 |
commit | 4d9de6be4b56c0c625e32492f2d9e69e681aa49f (patch) | |
tree | 8cf4de8d97c5173c3dca72df482ecebb5dfcec3a /llvm/lib | |
parent | b46ef57de5a2a8492fedd710bb48afee6d1f0522 (diff) | |
download | bcm5719-llvm-4d9de6be4b56c0c625e32492f2d9e69e681aa49f.tar.gz bcm5719-llvm-4d9de6be4b56c0c625e32492f2d9e69e681aa49f.zip |
Cleanup
llvm-svn: 123475
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/X86/X86FrameLowering.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index 21ca3e7bc51..1abd170edfc 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/lib/Target/X86/X86FrameLowering.cpp @@ -291,10 +291,7 @@ void X86FrameLowering::emitCalleeSavedFrameMoves(MachineFunction &MF, bool HasFP = hasFP(MF); // Calculate amount of bytes used for return address storing. - int stackGrowth = - (TM.getFrameLowering()->getStackGrowthDirection() == - TargetFrameLowering::StackGrowsUp ? - TD->getPointerSize() : -TD->getPointerSize()); + int stackGrowth = -TD->getPointerSize(); // FIXME: This is dirty hack. The code itself is pretty mess right now. // 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); Moves.push_back(MachineMove(FrameLabel, SPDst, SPSrc)); } else { - // FIXME: Verify & implement for FP MachineLocation SPDst(StackPtr); MachineLocation SPSrc(StackPtr, stackGrowth); Moves.push_back(MachineMove(FrameLabel, SPDst, SPSrc)); @@ -627,7 +623,6 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const { -StackSize + stackGrowth); Moves.push_back(MachineMove(Label, SPDst, SPSrc)); } else { - // FIXME: Verify & implement for FP MachineLocation SPDst(StackPtr); MachineLocation SPSrc(StackPtr, stackGrowth); Moves.push_back(MachineMove(Label, SPDst, SPSrc)); |