diff options
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 10 | ||||
-rw-r--r-- | lib/Target/X86/X86RegisterInfo.cpp | 10 |
2 files changed, 0 insertions, 20 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index fa218263bc..efed072786 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -712,16 +712,6 @@ void PPCRegisterInfo::emitPrologue(MachineFunction &MF) const { // Prepare for frame info. unsigned FrameLabelId = 0; - // Skip over the debug labels which mark the beginning of the function. - if (MMI && MMI->needsFrameInfo()) { - unsigned NumLabels = 0; - while (NumLabels <= 1 && - MBBI != MBB.end() && MBBI->isDebugLabel()) { - ++NumLabels; - ++MBBI; - } - } - // Scan the prolog, looking for an UPDATE_VRSAVE instruction. If we find it, // process it. for (unsigned i = 0; MBBI != MBB.end(); ++i, ++MBBI) { diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 5f9f290ae7..a0ffd33b21 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -525,16 +525,6 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const { X86FI->getCalleeSavedFrameSize() +(-TailCallReturnAddrDelta)); uint64_t NumBytes = StackSize - X86FI->getCalleeSavedFrameSize(); - // Skip over the debug labels which mark the beginning of the function. - if (MMI && MMI->needsFrameInfo()) { - unsigned NumLabels = 0; - while (NumLabels <= 1 && - MBBI != MBB.end() && MBBI->isDebugLabel()) { - ++NumLabels; - ++MBBI; - } - } - // Insert stack pointer adjustment for later moving of return addr. Only // applies to tail call optimized functions where the callee argument stack // size is bigger than the callers. |