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
diff --git a/lib/Sema/ParseAST.cpp b/lib/Sema/ParseAST.cpp
index 9199179..67b6546 100644
--- a/lib/Sema/ParseAST.cpp
+++ b/lib/Sema/ParseAST.cpp
@@ -34,10 +34,11 @@
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);