diff options
author | Devang Patel <dpatel@apple.com> | 2011-06-15 17:57:08 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-06-15 17:57:08 +0000 |
commit | 98703d32ff37fbfbcfd844241d2be44b8f80cf9f (patch) | |
tree | a5ec4106c67eb8c9df51ebcafa6b0422db6eac2e /lib/CodeGen/CGDecl.cpp | |
parent | 4ac01401b1ec602a1f58c217544d3dcb5fcbd7f1 (diff) |
Do not emit stoppoint before emitting debug info for parameters.
- 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
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 8a1a8536da..33c4ada68f 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -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); - } } |