]> granicus.if.org Git - clang/commitdiff
Mark implementation generated methods as artificial.
authorDevang Patel <dpatel@apple.com>
Thu, 15 Jul 2010 22:57:00 +0000 (22:57 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 15 Jul 2010 22:57:00 +0000 (22:57 +0000)
Tested by namespace.exp and virtfunc.exp from gdb testsuite.

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

lib/CodeGen/CGDebugInfo.cpp

index 513a1fe5eff32753fb4713c7fa1cfd863d25c233..d1de84fef7b9d1663330aa00a8af5f573f4220dd 100644 (file)
@@ -600,7 +600,8 @@ CGDebugInfo::CreateCXXMemberFunction(const CXXMethodDecl *Method,
                                   MethodDefUnit, MethodLine,
                                   MethodTy, /*isLocalToUnit=*/false, 
                                   /* isDefintion=*/ false,
-                                  Virtuality, VIndex, ContainingType);
+                                  Virtuality, VIndex, ContainingType,
+                                  Method->isImplicit());
   
   // Don't cache ctors or dtors since we have to emit multiple functions for
   // a single ctor or dtor.