mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
Delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
55a6f111fc
commit
377b227012
@ -763,15 +763,10 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||
.addSym(FrameLabel);
|
||||
|
||||
// Define the current CFA rule to use the provided offset.
|
||||
if (StackSize) {
|
||||
assert(StackSize);
|
||||
MachineLocation SPDst(MachineLocation::VirtualFP);
|
||||
MachineLocation SPSrc(MachineLocation::VirtualFP, 2 * stackGrowth);
|
||||
MMI.addFrameMove(FrameLabel, SPDst, SPSrc);
|
||||
} else {
|
||||
MachineLocation SPDst(StackPtr);
|
||||
MachineLocation SPSrc(StackPtr, stackGrowth);
|
||||
MMI.addFrameMove(FrameLabel, SPDst, SPSrc);
|
||||
}
|
||||
|
||||
// Change the rule for the FramePtr to be an "offset" rule.
|
||||
MachineLocation FPDst(MachineLocation::VirtualFP, 2 * stackGrowth);
|
||||
@ -959,16 +954,11 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||
|
||||
if (!HasFP && NumBytes) {
|
||||
// Define the current CFA rule to use the provided offset.
|
||||
if (StackSize) {
|
||||
assert(StackSize);
|
||||
MachineLocation SPDst(MachineLocation::VirtualFP);
|
||||
MachineLocation SPSrc(MachineLocation::VirtualFP,
|
||||
-StackSize + stackGrowth);
|
||||
MMI.addFrameMove(Label, SPDst, SPSrc);
|
||||
} else {
|
||||
MachineLocation SPDst(StackPtr);
|
||||
MachineLocation SPSrc(StackPtr, stackGrowth);
|
||||
MMI.addFrameMove(Label, SPDst, SPSrc);
|
||||
}
|
||||
}
|
||||
|
||||
// Emit DWARF info specifying the offsets of the callee-saved registers.
|
||||
|
Loading…
Reference in New Issue
Block a user