summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-10-12 11:47:36 +0000
committerEric Liu <ioeric@google.com>2018-10-12 11:47:36 +0000
commitf5617dce1ffb17a295790229e07be1172f0dcd7b (patch)
treee9f7673dd84c0a9a8a2a6801729a953f3f7c0e35
parent6eebbe0a971f7c350571c3788111da14198d01f2 (diff)
downloadbcm5719-llvm-f5617dce1ffb17a295790229e07be1172f0dcd7b.tar.gz
bcm5719-llvm-f5617dce1ffb17a295790229e07be1172f0dcd7b.zip
[Tooling] Expose ExecutorName option.
llvm-svn: 344335
-rw-r--r--clang/include/clang/Tooling/Execution.h2
-rw-r--r--clang/lib/Tooling/Execution.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/Tooling/Execution.h b/clang/include/clang/Tooling/Execution.h
index 7f4b145773e..6bf1cf391b7 100644
--- a/clang/include/clang/Tooling/Execution.h
+++ b/clang/include/clang/Tooling/Execution.h
@@ -37,6 +37,8 @@
namespace clang {
namespace tooling {
+extern llvm::cl::opt<std::string> ExecutorName;
+
/// An abstraction for the result of a tool execution. For example, the
/// underlying result can be in-memory or on-disk.
///
diff --git a/clang/lib/Tooling/Execution.cpp b/clang/lib/Tooling/Execution.cpp
index 7ae67747acb..9ddb18a57b4 100644
--- a/clang/lib/Tooling/Execution.cpp
+++ b/clang/lib/Tooling/Execution.cpp
@@ -16,7 +16,7 @@ LLVM_INSTANTIATE_REGISTRY(clang::tooling::ToolExecutorPluginRegistry)
namespace clang {
namespace tooling {
-static llvm::cl::opt<std::string>
+llvm::cl::opt<std::string>
ExecutorName("executor", llvm::cl::desc("The name of the executor to use."),
llvm::cl::init("standalone"));
OpenPOWER on IntegriCloud