diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-06-04 15:55:15 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-06-04 15:55:15 +0000 |
commit | e7d07d113677a39026ff5119b8b67f6fe8ca9793 (patch) | |
tree | 5f2e6a6b222a3b5f917102bf05b913baa312b24d /lib/Sema/ParseAST.cpp | |
parent | d251432ac0d6e65a4ab40ddc60bea9a24226d8e7 (diff) |
Moved LangOptions from TranslationUnit to ASTContext. This induced a variety of cleanups in some ASTConsumers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51943 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 9199179af7..67b6546637 100644 --- a/lib/Sema/ParseAST.cpp +++ b/lib/Sema/ParseAST.cpp @@ -34,10 +34,11 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, bool PrintStats) { Stmt::CollectingStats(true); } - ASTContext Context(PP.getSourceManager(), PP.getTargetInfo(), + ASTContext Context(PP.getLangOptions(), PP.getSourceManager(), + PP.getTargetInfo(), PP.getIdentifierTable(), PP.getSelectorTable()); - TranslationUnit TU(Context, PP.getLangOptions()); + TranslationUnit TU(Context); Sema S(PP, Context, *Consumer); Parser P(PP, S); |