diff options
author | Devang Patel <dpatel@apple.com> | 2010-07-12 22:54:41 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-07-12 22:54:41 +0000 |
commit | a5c5babb9974aaf07568e90086af52b91edc2c16 (patch) | |
tree | 2dee915cff4280217e67105982e8f4a9600bf43a /lib/CodeGen/CGDebugInfo.cpp | |
parent | 1dc13a15e789a174e5e5855efe27036dd7a9d252 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |