diff options
| author | Eric Liu <ioeric@google.com> | 2018-10-12 11:47:36 +0000 |
|---|---|---|
| committer | Eric Liu <ioeric@google.com> | 2018-10-12 11:47:36 +0000 |
| commit | f5617dce1ffb17a295790229e07be1172f0dcd7b (patch) | |
| tree | e9f7673dd84c0a9a8a2a6801729a953f3f7c0e35 | |
| parent | 6eebbe0a971f7c350571c3788111da14198d01f2 (diff) | |
| download | bcm5719-llvm-f5617dce1ffb17a295790229e07be1172f0dcd7b.tar.gz bcm5719-llvm-f5617dce1ffb17a295790229e07be1172f0dcd7b.zip | |
[Tooling] Expose ExecutorName option.
llvm-svn: 344335
| -rw-r--r-- | clang/include/clang/Tooling/Execution.h | 2 | ||||
| -rw-r--r-- | clang/lib/Tooling/Execution.cpp | 2 |
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")); |

