diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-02-06 00:46:58 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-02-06 00:46:58 +0000 |
| commit | fe0e0af434f69f0fc1c870b1ad0cf2af9a1d260f (patch) | |
| tree | cdeba095a6c8df8281fb657bc028e4f59cae3d2d /clang/Sema/ParseAST.cpp | |
| parent | 8082d870bd893f6a2f37f815fdbe76e0b6d18354 (diff) | |
| download | bcm5719-llvm-fe0e0af434f69f0fc1c870b1ad0cf2af9a1d260f.tar.gz bcm5719-llvm-fe0e0af434f69f0fc1c870b1ad0cf2af9a1d260f.zip | |
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
Diffstat (limited to 'clang/Sema/ParseAST.cpp')
| -rw-r--r-- | clang/Sema/ParseAST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |

