diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-04-14 16:27:31 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-04-14 16:27:31 +0000 |
commit | f807fe0d1a865f4c6ba7e494cf4ae360c4173521 (patch) | |
tree | f0bbaf88dd034f90d941b171e3c6b3a7cf9fcf68 /lib/Sema/ParseAST.cpp | |
parent | d824c9c281c163ba86f3cc10c5572120234a2454 (diff) |
When building a PCH file, don't perform end-of-translation-unit
wrap-up (e.g., turning tentative definitions into definitions). Also,
very that, when we actually use the PCH file, we get the ride code
generation for tentative definitions and definitions that show up in
the PCH file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/ParseAST.cpp')
-rw-r--r-- | lib/Sema/ParseAST.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/ParseAST.cpp b/lib/Sema/ParseAST.cpp index bb5acb0ee8..d237f7539e 100644 --- a/lib/Sema/ParseAST.cpp +++ b/lib/Sema/ParseAST.cpp @@ -29,14 +29,15 @@ using namespace clang; /// held by Ctx. /// void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, - ASTContext &Ctx, bool PrintStats) { + ASTContext &Ctx, bool PrintStats, + bool CompleteTranslationUnit) { // Collect global stats on Decls/Stmts (until we have a module streamer). if (PrintStats) { Decl::CollectingStats(true); Stmt::CollectingStats(true); } - Sema S(PP, Ctx, *Consumer); + Sema S(PP, Ctx, *Consumer, CompleteTranslationUnit); Parser P(PP, S); PP.EnterMainSourceFile(); |