summaryrefslogtreecommitdiffstats
path: root/clang/tools/index-test/index-test.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-21 03:03:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-21 03:03:39 +0000
commit7cd285f0fe89dcc3f47cc11d5bd9db8ad4d85d37 (patch)
tree279c2f32937b32cd548e91bd992307add932d505 /clang/tools/index-test/index-test.cpp
parent948062a592f9153dece886165e7c9365fa13715f (diff)
downloadbcm5719-llvm-7cd285f0fe89dcc3f47cc11d5bd9db8ad4d85d37.tar.gz
bcm5719-llvm-7cd285f0fe89dcc3f47cc11d5bd9db8ad4d85d37.zip
Change ASTUnit to take the Diagnostic as an argument, the client should have control of this.
llvm-svn: 82430
Diffstat (limited to 'clang/tools/index-test/index-test.cpp')
-rw-r--r--clang/tools/index-test/index-test.cpp4
1 files changed, 2 insertions, 2 deletions
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<ASTUnit> 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;
OpenPOWER on IntegriCloud