From a53c40a59981b6bae7e734fa9e42bc345c0457df Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 1 Feb 2008 09:10:45 +0000 Subject: Remove the nasty LABEL hack with a much less evil one. Now llvm.dbg.func.start implies a stoppoint is set. SelectionDAGISel records a new source line but does not create a ISD::LABEL node for this special stoppoint. Asm printer will magically print this label. This ensures nothing is emitted before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46635 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86RegisterInfo.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/Target/X86/X86RegisterInfo.cpp') diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 5f9f290..a0ffd33 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. -- cgit v1.1