diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-06-26 17:51:47 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-06-26 17:51:47 +0000 |
commit | 908b697e78ffa16e49294a8323bc67da6888197d (patch) | |
tree | e1963f7728d69a4be6a5f9efbb4cbdc45abe8f12 /llvm/lib/Option/ArgList.cpp | |
parent | 6083ae0b4a250c69f6d5b13b3742ee1fe5b878d5 (diff) | |
download | bcm5719-llvm-908b697e78ffa16e49294a8323bc67da6888197d.tar.gz bcm5719-llvm-908b697e78ffa16e49294a8323bc67da6888197d.zip |
Make AddLastArg() variadic and use it more. No behavior change.
llvm-svn: 364453
Diffstat (limited to 'llvm/lib/Option/ArgList.cpp')
-rw-r--r-- | llvm/lib/Option/ArgList.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/Option/ArgList.cpp b/llvm/lib/Option/ArgList.cpp index 36e2f45fe39..f37c142da69 100644 --- a/llvm/lib/Option/ArgList.cpp +++ b/llvm/lib/Option/ArgList.cpp @@ -95,21 +95,6 @@ std::vector<std::string> ArgList::getAllArgValues(OptSpecifier Id) const { return std::vector<std::string>(Values.begin(), Values.end()); } -void ArgList::AddLastArg(ArgStringList &Output, OptSpecifier Id) const { - if (Arg *A = getLastArg(Id)) { - A->claim(); - A->render(*this, Output); - } -} - -void ArgList::AddLastArg(ArgStringList &Output, OptSpecifier Id0, - OptSpecifier Id1) const { - if (Arg *A = getLastArg(Id0, Id1)) { - A->claim(); - A->render(*this, Output); - } -} - void ArgList::AddAllArgsExcept(ArgStringList &Output, ArrayRef<OptSpecifier> Ids, ArrayRef<OptSpecifier> ExcludeIds) const { |