diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-28 02:18:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-28 02:18:25 +0000 |
commit | 7bb0da001fc579410035cec00b6bca499251a318 (patch) | |
tree | e5e12128a449bab91aa89b1836864da690591be2 /lib | |
parent | 925a704e0831e2b2f3678c33c50b5484fbe6517a (diff) |
eliminate ASTConsumer::InitializeTU, all clients are
happy with just ASTContext, they don't need a TU.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AST/ASTConsumer.cpp | 5 | ||||
-rw-r--r-- | lib/Sema/ParseAST.cpp | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/AST/ASTConsumer.cpp b/lib/AST/ASTConsumer.cpp index bf6a0cb761..b3919f1771 100644 --- a/lib/AST/ASTConsumer.cpp +++ b/lib/AST/ASTConsumer.cpp @@ -14,11 +14,6 @@ #include "clang/AST/ASTConsumer.h" #include "clang/AST/Decl.h" #include "clang/AST/TranslationUnit.h" - using namespace clang; ASTConsumer::~ASTConsumer() {} - -void ASTConsumer::InitializeTU(TranslationUnit& TU) { - Initialize(TU.getContext()); -} diff --git a/lib/Sema/ParseAST.cpp b/lib/Sema/ParseAST.cpp index 6b40d7fd18..bbca551521 100644 --- a/lib/Sema/ParseAST.cpp +++ b/lib/Sema/ParseAST.cpp @@ -42,7 +42,7 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, // Initialize the parser. P.Initialize(); - Consumer->InitializeTU(TU); + Consumer->Initialize(TU.getContext()); Parser::DeclTy *ADecl; |