summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/Indexing.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-29 19:32:39 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-29 19:32:39 +0000
commit9780553ef0c17574b8f6838b4a43211d72972b4f (patch)
tree25e08fd836a2e72938984690f5ea18fb0f260370 /clang/tools/libclang/Indexing.cpp
parentac5394185e6b09e36e74305d11e2bfc52c614a4e (diff)
downloadbcm5719-llvm-9780553ef0c17574b8f6838b4a43211d72972b4f.tar.gz
bcm5719-llvm-9780553ef0c17574b8f6838b4a43211d72972b4f.zip
Use LIBCLANG_NOTHREADS instead of CINDEXTEST_NOTHREADS inside libclang,
so the c-index-test one can be enabled without affecting libclang. llvm-svn: 143288
Diffstat (limited to 'clang/tools/libclang/Indexing.cpp')
-rw-r--r--clang/tools/libclang/Indexing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/Indexing.cpp b/clang/tools/libclang/Indexing.cpp
index d05995ce0d2..7f296ae1d19 100644
--- a/clang/tools/libclang/Indexing.cpp
+++ b/clang/tools/libclang/Indexing.cpp
@@ -407,7 +407,7 @@ int clang_indexTranslationUnit(CXIndex CIdx,
num_command_line_args, unsaved_files,
num_unsaved_files, out_TU, TU_options, 0 };
- if (getenv("CINDEXTEST_NOTHREADS")) {
+ if (getenv("LIBCLANG_NOTHREADS")) {
clang_indexTranslationUnit_Impl(&ITUI);
return ITUI.result;
}
OpenPOWER on IntegriCloud