]> granicus.if.org Git - clang/commitdiff
Add a fixme for an old patch I had lying around that I'm not going to finish any...
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 12 Apr 2016 21:22:48 +0000 (21:22 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 12 Apr 2016 21:22:48 +0000 (21:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266127 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index ee013a0b9be70ac616966e32558842a68a4a9e08..759ee549678e07f13e2e915fa8b39bac8de81c1b 100644 (file)
@@ -1119,6 +1119,11 @@ llvm::DISubprogram *CGDebugInfo::CreateCXXMemberFunction(
   // Since a single ctor/dtor corresponds to multiple functions, it doesn't
   // make sense to give a single ctor/dtor a linkage name.
   StringRef MethodLinkageName;
+  // FIXME: 'isFunctionLocalClass' seems like an arbitrary/unintentional
+  // property to use here. It may've been intended to model "is non-external
+  // type" but misses cases of non-function-local but non-external classes such
+  // as those in anonymous namespaces as well as the reverse - external types
+  // that are function local, such as those in (non-local) inline functions.
   if (!IsCtorOrDtor && !isFunctionLocalClass(Method->getParent()))
     MethodLinkageName = CGM.getMangledName(Method);