Skip to content

Commit

Permalink
Revert "Don't use a debug location for frame setup instructions in the"
Browse files Browse the repository at this point in the history
This reverts 165055 and 165052 temporarily while I look at debugger
failures.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165071 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
echristo committed Oct 2, 2012
1 parent f9e008b commit 394820b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 39 deletions.
7 changes: 3 additions & 4 deletions lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1355,10 +1355,9 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
if (!MI->isLabel())
AtBlockEntry = false;

// First known non-DBG_VALUE and non-frame setup location marks
// the beginning of the function body.
if (!MI->getFlag(MachineInstr::FrameSetup) &&
(PrologEndLoc.isUnknown() && !MI->getDebugLoc().isUnknown()))
// First known non DBG_VALUE location marks beginning of function
// body.
if (PrologEndLoc.isUnknown() && !MI->getDebugLoc().isUnknown())
PrologEndLoc = MI->getDebugLoc();

// Check if the instruction clobbers any registers with debug vars.
Expand Down
2 changes: 2 additions & 0 deletions lib/Target/X86/X86FrameLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,8 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
MI->getOperand(3).setIsDead();
}

DL = MBB.findDebugLoc(MBBI);

// If there is an SUB32ri of ESP immediately before this instruction, merge
// the two. This can be the case when tail call elimination is enabled and
// the callee has more arguments then the caller.
Expand Down
35 changes: 0 additions & 35 deletions test/DebugInfo/X86/prologue-stack.ll

This file was deleted.

0 comments on commit 394820b

Please sign in to comment.