Modify ParseArgs to return the InputArgList by value - there's no need for dynamic...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 22 Jun 2015 22:06:37 +0000 (22:06 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 22 Jun 2015 22:06:37 +0000 (22:06 +0000)
commit0c17f95006adc410153f6c614be0320a9a6e3838
tree1e52c3a7d6a5b814e8a0744c5d6c68bdd9af77bd
parentcf300d8b0e103f5a022a8b2768ffa926f0b6d4aa
Modify ParseArgs to return the InputArgList by value - there's no need for dynamic allocation/ownership here

The one caller that does anything other than keep this variable on the
stack is the single use of DerivedArgList in Clang, which is a bit more
interesting but can probably be cleaned up/simplified a bit further
(have DerivedArgList take ownership of the InputArgList rather than
needing to reference its Args indirectly) which I'll try to after this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240345 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Option/ArgList.h
include/llvm/Option/OptTable.h
lib/LibDriver/LibDriver.cpp
lib/Option/OptTable.cpp
unittests/Option/OptionParsingTest.cpp