[cfe-commits] r133065 - /cfe/trunk/lib/CodeGen/CGDecl.cpp

Devang Patel dpatel at apple.com
Wed Jun 15 10:57:08 PDT 2011


Author: dpatel
Date: Wed Jun 15 12:57:08 2011
New Revision: 133065

URL: http://llvm.org/viewvc/llvm-project?rev=133065&view=rev
Log:
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.

Modified:
    cfe/trunk/lib/CodeGen/CGDecl.cpp

Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=133065&r1=133064&r2=133065&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Wed Jun 15 12:57:08 2011
@@ -894,8 +894,6 @@
   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);
-  }
 }





More information about the cfe-commits mailing list