[cfe-commits] r108205 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Devang Patel dpatel at apple.com
Mon Jul 12 15:54:41 PDT 2010

Author: dpatel
Date: Mon Jul 12 17:54:41 2010
New Revision: 108205

URL: http://llvm.org/viewvc/llvm-project?rev=108205&view=rev
While collecting members for a class, always create delcaration entry for methods. Debug info for method definition will be generated while generating code for method body. 
Tested by classes.exp in gdb testsuite.


Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=108205&r1=108204&r2=108205&view=diff
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Jul 12 17:54:41 2010
@@ -598,7 +598,7 @@
                                   MethodDefUnit, MethodLine,
                                   MethodTy, /*isLocalToUnit=*/false, 
-                                  Method->isThisDeclarationADefinition(),
+                                  /* isDefintion=*/ false,
                                   Virtuality, VIndex, ContainingType);
   // Don't cache ctors or dtors since we have to emit multiple functions for

More information about the cfe-commits mailing list