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.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46787 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/ParseAST.cpp b/Sema/ParseAST.cpp
index 92e8d24..8fd14d1 100644
--- a/Sema/ParseAST.cpp
+++ b/Sema/ParseAST.cpp
@@ -38,7 +38,7 @@
   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.