Introduce the notion of a "minimal" import of ASTs, to better support LLDB.

llvm-svn: 123723
This commit is contained in:
Douglas Gregor
2011-01-18 03:11:38 +00:00
parent 66e91d4a58
commit 0a791672f0
3 changed files with 60 additions and 9 deletions

View File

@@ -52,7 +52,8 @@ void ASTMergeAction::ExecuteAction() {
ASTImporter Importer(CI.getASTContext(),
CI.getFileManager(),
Unit->getASTContext(),
Unit->getFileManager());
Unit->getFileManager(),
/*MinimalImport=*/false);
TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl();
for (DeclContext::decl_iterator D = TU->decls_begin(),