diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-21 03:03:39 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-21 03:03:39 +0000 |
commit | 31b87d8006d4863dd9b17e515ac720941efc38e3 (patch) | |
tree | 42958d1643a6744e938e5708ada6b96ce4ed5945 /tools/index-test/index-test.cpp | |
parent | a39075952caea0af902f174ce26ad5ac787b3974 (diff) |
Change ASTUnit to take the Diagnostic as an argument, the client should have control of this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/index-test/index-test.cpp')
-rw-r--r-- | tools/index-test/index-test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/index-test/index-test.cpp b/tools/index-test/index-test.cpp index a0546bfcd8..decc921ded 100644 --- a/tools/index-test/index-test.cpp +++ b/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; |