[PATCH] D30570: Option parsing: implement decrement operators for arg_iterator
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 00:45:19 PST 2017
grimar added a comment.
In https://reviews.llvm.org/D30570#692668, @davide wrote:
> ehm, what's your use case for iterating lld arguments in reverse order?
Case is https://reviews.llvm.org/D30530#inline-264974.
-z linker option can have any text parameter: -z foo, -z boo, -z moo. In my case I am trying to support
-z text/-z notext. Processing only the last text/notext would be enough to know the result value for option.
I am using Args.filtered(OPT_z) to take all -z options now and was asked during review to iterate from backwards.
https://reviews.llvm.org/D30570
More information about the llvm-commits
mailing list