Debug Info: When building a module, emit skeleton CUs for imported modules.

llvm-svn: 248184
This commit is contained in:
Adrian Prantl
2015-09-21 17:48:37 +00:00
parent 53d5cea648
commit 85d938aadb
3 changed files with 30 additions and 9 deletions

View File

@@ -67,6 +67,13 @@ class PCHContainerGenerator : public ASTConsumer {
return !Ty->isDependentType() && !Ty->isUndeducedType();
}
bool VisitImportDecl(ImportDecl *D) {
auto *Import = cast<ImportDecl>(D);
if (!Import->getImportedOwningModule())
DI.EmitImportDecl(*Import);
return true;
}
bool VisitTypeDecl(TypeDecl *D) {
QualType QualTy = Ctx.getTypeDeclType(D);
if (!QualTy.isNull() && CanRepresent(QualTy.getTypePtr()))