summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Astiazaran <diegoaat97@gmail.com>2019-08-07 18:35:28 +0000
committerDiego Astiazaran <diegoaat97@gmail.com>2019-08-07 18:35:28 +0000
commitba55970c150b781adcd401e6ea77a061e9aed14b (patch)
treefbbeb52f01620a9b6a4d0ae852f6df8ddaa5d452
parent66c08430f6dd80b87d46ce627f9141e5bdbecc60 (diff)
downloadbcm5719-llvm-ba55970c150b781adcd401e6ea77a061e9aed14b.tar.gz
bcm5719-llvm-ba55970c150b781adcd401e6ea77a061e9aed14b.zip
[Tooling] Expose ExecutorConcurrency option.
D65628 requires a flag to specify the number of threads for a clang-doc step. It would be good to use ExecutorConcurrency after exposing it instead of creating a new one that has the same purpose. Differential Revision: https://reviews.llvm.org/D65833 llvm-svn: 368196
-rw-r--r--clang/include/clang/Tooling/AllTUsExecution.h1
-rw-r--r--clang/lib/Tooling/AllTUsExecution.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/clang/include/clang/Tooling/AllTUsExecution.h b/clang/include/clang/Tooling/AllTUsExecution.h
index e670f54234a..f051119392f 100644
--- a/clang/include/clang/Tooling/AllTUsExecution.h
+++ b/clang/include/clang/Tooling/AllTUsExecution.h
@@ -71,6 +71,7 @@ private:
unsigned ThreadCount;
};
+extern llvm::cl::opt<unsigned> ExecutorConcurrency;
extern llvm::cl::opt<std::string> Filter;
} // end namespace tooling
diff --git a/clang/lib/Tooling/AllTUsExecution.cpp b/clang/lib/Tooling/AllTUsExecution.cpp
index ca9db7a561b..6bda195f697 100644
--- a/clang/lib/Tooling/AllTUsExecution.cpp
+++ b/clang/lib/Tooling/AllTUsExecution.cpp
@@ -147,7 +147,7 @@ llvm::Error AllTUsToolExecutor::execute(
return llvm::Error::success();
}
-static llvm::cl::opt<unsigned> ExecutorConcurrency(
+llvm::cl::opt<unsigned> ExecutorConcurrency(
"execute-concurrency",
llvm::cl::desc("The number of threads used to process all files in "
"parallel. Set to 0 for hardware concurrency. "
OpenPOWER on IntegriCloud