mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
The code that used the StartLabelId label was removed, so remove the
code that creates the label too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e40c7b0973
commit
5e6e93ecdc
@ -1278,18 +1278,12 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const {
|
|||||||
MachineBasicBlock::iterator MBBI = MBB.begin();
|
MachineBasicBlock::iterator MBBI = MBB.begin();
|
||||||
|
|
||||||
// Prepare for frame info.
|
// Prepare for frame info.
|
||||||
unsigned FrameLabelId = 0, StartLabelId = 0;
|
unsigned FrameLabelId = 0;
|
||||||
|
|
||||||
// Get the number of bytes to allocate from the FrameInfo
|
// Get the number of bytes to allocate from the FrameInfo
|
||||||
uint64_t StackSize = MFI->getStackSize();
|
uint64_t StackSize = MFI->getStackSize();
|
||||||
uint64_t NumBytes = StackSize - X86FI->getCalleeSavedFrameSize();
|
uint64_t NumBytes = StackSize - X86FI->getCalleeSavedFrameSize();
|
||||||
|
|
||||||
if (MMI && MMI->needsFrameInfo()) {
|
|
||||||
// Mark function start
|
|
||||||
StartLabelId = MMI->NextLabelID();
|
|
||||||
BuildMI(MBB, MBBI, TII.get(X86::LABEL)).addImm(StartLabelId);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasFP(MF)) {
|
if (hasFP(MF)) {
|
||||||
// Get the offset of the stack slot for the EBP register... which is
|
// Get the offset of the stack slot for the EBP register... which is
|
||||||
// guaranteed to be the last slot by processFunctionBeforeFrameFinalized.
|
// guaranteed to be the last slot by processFunctionBeforeFrameFinalized.
|
||||||
|
Loading…
Reference in New Issue
Block a user