]> granicus.if.org Git - clang/commitdiff
While collecting members for a class, always create delcaration entry for methods...
authorDevang Patel <dpatel@apple.com>
Mon, 12 Jul 2010 22:54:41 +0000 (22:54 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 12 Jul 2010 22:54:41 +0000 (22:54 +0000)
Tested by classes.exp in gdb testsuite.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108205 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index d63db2666674765b9cbba069c54d2115e88ffdf4..80d5f1af5e4807f4e8791b7752947c6b7e92b41b 100644 (file)
@@ -598,7 +598,7 @@ CGDebugInfo::CreateCXXMemberFunction(const CXXMethodDecl *Method,
                                   MethodLinkageName,
                                   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