summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2016-08-22 22:38:16 +0000
committerAdrian Prantl <aprantl@apple.com>2016-08-22 22:38:16 +0000
commit09906a6e87eb256f6cc8e0a37bddbb094ebea30e (patch)
treed42aae15272ce1e6ce42df33021b18d552659119
parent8ff4c08e34c6bb556fa60de7094f68c321d8f5f8 (diff)
downloadbcm5719-llvm-09906a6e87eb256f6cc8e0a37bddbb094ebea30e.tar.gz
bcm5719-llvm-09906a6e87eb256f6cc8e0a37bddbb094ebea30e.zip
Add comments. NFC
llvm-svn: 279490
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index af0cd02ed2f..d515e1a31f7 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -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)) {
OpenPOWER on IntegriCloud