Skip to content

Commit

Permalink
Do not emit stoppoint before emitting debug info for parameters.
Browse files Browse the repository at this point in the history
- llvm.dbg.declare already receives line number information from ParmDecl
- Additional extra stoppoint messes up gdb's understanding of where function body starts.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133065 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Devang Patel committed Jun 15, 2011
1 parent 4ac0140 commit 98703d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/CodeGen/CGDecl.cpp
Expand Up @@ -894,8 +894,6 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg,
DMEntry = DeclPtr;

// Emit debug info for param declaration.
if (CGDebugInfo *DI = getDebugInfo()) {
DI->setLocation(D.getLocation());
if (CGDebugInfo *DI = getDebugInfo())
DI->EmitDeclareOfArgVariable(&D, DeclPtr, ArgNo, Builder);
}
}

0 comments on commit 98703d3

Please sign in to comment.