diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2019-10-05 01:37:04 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2019-10-05 01:37:04 +0000 |
commit | 482f4d9aa9d1a4d991e6fd1fdd233f07bb69791f (patch) | |
tree | 30c74a3ec01c12a11bded1a932086e5d1132c422 /llvm/lib/Support/CommandLine.cpp | |
parent | d5a4dad2061c09b01f396b3958ccccc4f9727b1a (diff) | |
download | bcm5719-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.cpp | 2 |
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); } |