]> granicus.if.org Git - clang/commitdiff
Emit human readable names for operators.
authorDevang Patel <dpatel@apple.com>
Tue, 19 Jan 2010 02:02:11 +0000 (02:02 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 19 Jan 2010 02:02:11 +0000 (02:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93837 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 6b2c3c6b6ddb13eb68a5b73590af4d2a7bd4dd11..d9c1e00012d0980b708c57023f1e61e9504476d4 100644 (file)
@@ -545,11 +545,10 @@ CollectCXXMemberFunctions(const CXXRecordDecl *Decl,
       MethodName = getFunctionName(Method);
       // FIXME : Find linkage name.
     } else {
-      // regular method
-      IdentifierInfo *II = Method->getIdentifier();
-      if (!II)
+      if (Method->isImplicit())
         continue;
-      MethodName = Method->getIdentifier()->getName();
+      // regular method
+      MethodName = getFunctionName(Method);
       MethodLinkageName = CGM.getMangledName(Method);
     }