Add comments. NFC
authorAdrian Prantl <aprantl@apple.com>
Mon, 22 Aug 2016 22:38:16 +0000 (22:38 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 22 Aug 2016 22:38:16 +0000 (22:38 +0000)
llvm-svn: 279490

clang/lib/CodeGen/CGDebugInfo.cpp

index af0cd02..d515e1a 100644 (file)
@@ -1650,8 +1650,10 @@ static bool hasExplicitMemberDefinition(CXXRecordDecl::method_iterator I,
 
 /// Does a type definition exist in an imported clang module?
 static bool isDefinedInClangModule(const RecordDecl *RD) {
+  // Only definitions that where imported from an AST file come from a module.
   if (!RD || !RD->isFromASTFile())
     return false;
+  // Anonymous entities cannot be addressed. Treat them as not from module.
   if (!RD->isExternallyVisible() && RD->getName().empty())
     return false;
   if (auto *CXXDecl = dyn_cast<CXXRecordDecl>(RD)) {