summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-06-15 17:57:08 +0000
committerDevang Patel <dpatel@apple.com>2011-06-15 17:57:08 +0000
commit7bf741ac3613654f83f9c37cfb58e970b1854c2a (patch)
treed17ccdd366d5e434511d5ea1d19fcde9892f1acd
parent678b691aa303e99b70f32a66c2dc774526486562 (diff)
downloadbcm5719-llvm-7bf741ac3613654f83f9c37cfb58e970b1854c2a.tar.gz
bcm5719-llvm-7bf741ac3613654f83f9c37cfb58e970b1854c2a.zip
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. llvm-svn: 133065
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 8a1a8536dab..33c4ada68f8 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/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);
- }
}
OpenPOWER on IntegriCloud