From: Devang Patel Date: Thu, 15 Jul 2010 22:57:00 +0000 (+0000) Subject: Mark implementation generated methods as artificial. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4089491e354a8718f3953b0ef72da0ad6ca98d89;p=clang Mark implementation generated methods as artificial. 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 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 513a1fe5ef..d1de84fef7 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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.