aboutsummaryrefslogtreecommitdiff
path: root/tools/CIndex/CIndex.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-10-19 14:34:22 +0000
committerSteve Naroff <snaroff@apple.com>2009-10-19 14:34:22 +0000
commit36c4464ba6cfc2a63dc67c493ef2f5ab2aea09cc (patch)
tree1c632799acfc9070271462b1425237f4820957a8 /tools/CIndex/CIndex.cpp
parentbade7de59dff22fdb6a53291366da1973a919f10 (diff)
Move Diagnostic/DiagClient/FileManager from Indexer => ASTUnit.
Removing this shared data should enable clang_createTranslationUnit/clang_createTranslationUnitFromSourceFile to be run from multiple threads (related to <rdar://problem/7303432>). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/CIndex/CIndex.cpp')
-rw-r--r--tools/CIndex/CIndex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp
index 99f6154056..cc49ee4236 100644
--- a/tools/CIndex/CIndex.cpp
+++ b/tools/CIndex/CIndex.cpp
@@ -347,8 +347,7 @@ CXTranslationUnit clang_createTranslationUnit(
std::string astName(ast_filename);
std::string ErrMsg;
- return ASTUnit::LoadFromPCHFile(astName, CXXIdx->getDiagnostics(),
- CXXIdx->getFileManager(), &ErrMsg,
+ return ASTUnit::LoadFromPCHFile(astName, &ErrMsg,
CXXIdx->getOnlyLocalDecls(),
/* UseBumpAllocator = */ true);
}