From fe0e0af434f69f0fc1c870b1ad0cf2af9a1d260f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 6 Feb 2008 00:46:58 +0000 Subject: pass the astconsumer into Sema's ctor, clean up some stuff in Sema::ActOnTranslationUnitScope. The various ObjC pieces at the top of Sema.cpp should be moved into SemaObjC or something. llvm-svn: 46787 --- clang/Sema/ParseAST.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/Sema/ParseAST.cpp') diff --git a/clang/Sema/ParseAST.cpp b/clang/Sema/ParseAST.cpp index 92e8d247e65..8fd14d17d1a 100644 --- a/clang/Sema/ParseAST.cpp +++ b/clang/Sema/ParseAST.cpp @@ -38,7 +38,7 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, bool PrintStats) { ASTContext Context(PP.getSourceManager(), PP.getTargetInfo(), PP.getIdentifierTable(), PP.getSelectorTable()); - Parser P(PP, *new Sema(PP, Context)); + Parser P(PP, *new Sema(PP, Context, *Consumer)); PP.EnterMainSourceFile(); // Initialize the parser. -- cgit v1.2.3