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 | 54feb8448953d6131737c51180441661535f8487 (patch) | |
tree | a9a4e0d3d83966d94bb92372d71c4fa6c7b3ff03 /clang/lib/Sema/ParseAST.cpp | |
parent | 06f440dd7b00ef8970242bcc9de79d223c35075e (diff) | |
download | bcm5719-llvm-54feb8448953d6131737c51180441661535f8487.tar.gz bcm5719-llvm-54feb8448953d6131737c51180441661535f8487.zip |
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.
llvm-svn: 69043
Diffstat (limited to 'clang/lib/Sema/ParseAST.cpp')
-rw-r--r-- | clang/lib/Sema/ParseAST.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/ParseAST.cpp b/clang/lib/Sema/ParseAST.cpp index bb5acb0ee8d..d237f7539e4 100644 --- a/clang/lib/Sema/ParseAST.cpp +++ b/clang/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(); |