From a5c5babb9974aaf07568e90086af52b91edc2c16 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 12 Jul 2010 22:54:41 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108205 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index d63db26666..80d5f1af5e 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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 -- 2.40.0