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.

llvm-svn: 108205
This commit is contained in:
Devang Patel 2010-07-12 22:54:41 +00:00
parent 91806311c9
commit 0aabb1200f
1 changed files with 1 additions and 1 deletions

View 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