aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/ParseAST.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-28 02:18:25 +0000
committerChris Lattner <sabre@nondot.org>2009-03-28 02:18:25 +0000
commit7bb0da001fc579410035cec00b6bca499251a318 (patch)
treee5e12128a449bab91aa89b1836864da690591be2 /lib/Sema/ParseAST.cpp
parent925a704e0831e2b2f3678c33c50b5484fbe6517a (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/Sema/ParseAST.cpp')
-rw-r--r--lib/Sema/ParseAST.cpp2
1 files changed, 1 insertions, 1 deletions
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;