Options: Use erase_if to remove Args from the list.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 18 May 2014 15:14:13 +0000 (15:14 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 18 May 2014 15:14:13 +0000 (15:14 +0000)
commitaad181f64485fbc75ce02b7dc993004d3aa168c2
tree2ce79acebb20a147f1a0ce764a685dc96c378610
parentbf3e78f5728f116067f8a373a522c221ccdaa08f
Options: Use erase_if to remove Args from the list.

While there make getOption return a const reference so we don't have to put it
on the stack when calling methods on it. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209088 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Option/Arg.h
lib/Option/ArgList.cpp