From: Eric Liu Date: Fri, 12 Oct 2018 11:47:36 +0000 (+0000) Subject: [Tooling] Expose ExecutorName option. X-Git-Tag: llvmorg-8.0.0-rc1~6695 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5617dce1ffb17a295790229e07be1172f0dcd7b;p=platform%2Fupstream%2Fllvm.git [Tooling] Expose ExecutorName option. llvm-svn: 344335 --- diff --git a/clang/include/clang/Tooling/Execution.h b/clang/include/clang/Tooling/Execution.h index 7f4b145..6bf1cf3 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 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 7ae6774..9ddb18a 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 +llvm::cl::opt ExecutorName("executor", llvm::cl::desc("The name of the executor to use."), llvm::cl::init("standalone"));