summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2019-10-05 01:37:04 +0000
committerMehdi Amini <joker.eph@gmail.com>2019-10-05 01:37:04 +0000
commit482f4d9aa9d1a4d991e6fd1fdd233f07bb69791f (patch)
tree30c74a3ec01c12a11bded1a932086e5d1132c422 /llvm/lib/Support/CommandLine.cpp
parentd5a4dad2061c09b01f396b3958ccccc4f9727b1a (diff)
downloadbcm5719-llvm-482f4d9aa9d1a4d991e6fd1fdd233f07bb69791f.tar.gz
bcm5719-llvm-482f4d9aa9d1a4d991e6fd1fdd233f07bb69791f.zip
Expose ProvidePositionalOption as a public API
The motivation is to reuse the key value parsing logic here to parse instance specific pass options within the context of MLIR. The primary functionality exposed is the "," splitting for arrays and the logic for properly handling duplicate definitions of a single flag. Patch by: Parker Schuh <parkers@google.com> Differential Revision: https://reviews.llvm.org/D68294 llvm-svn: 373815
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 25510fa58ff..620f7ffd4c9 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -692,7 +692,7 @@ static inline bool ProvideOption(Option *Handler, StringRef ArgName,
return false;
}
-static bool ProvidePositionalOption(Option *Handler, StringRef Arg, int i) {
+bool llvm::cl::ProvidePositionalOption(Option *Handler, StringRef Arg, int i) {
int Dummy = i;
return ProvideOption(Handler, Handler->ArgStr, Arg, 0, nullptr, Dummy);
}
OpenPOWER on IntegriCloud