From 7cd285f0fe89dcc3f47cc11d5bd9db8ad4d85d37 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 21 Sep 2009 03:03:39 +0000 Subject: Change ASTUnit to take the Diagnostic as an argument, the client should have control of this. llvm-svn: 82430 --- clang/tools/index-test/index-test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/tools/index-test/index-test.cpp') diff --git a/clang/tools/index-test/index-test.cpp b/clang/tools/index-test/index-test.cpp index a0546bfcd8e..decc921ded7 100644 --- a/clang/tools/index-test/index-test.cpp +++ b/clang/tools/index-test/index-test.cpp @@ -225,8 +225,8 @@ int main(int argc, char **argv) { std::string ErrMsg; llvm::OwningPtr AST; - AST.reset(ASTUnit::LoadFromPCHFile(InFile, Idxer.getFileManager(), - &ErrMsg)); + AST.reset(ASTUnit::LoadFromPCHFile(InFile, Idxer.getDiagnostics(), + Idxer.getFileManager(), &ErrMsg)); if (!AST) { llvm::errs() << "[" << InFile << "] Error: " << ErrMsg << '\n'; return 1; -- cgit v1.2.3