Use unique_ptr to handle ownership of synthesized args in DerivedArgList
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 20 Apr 2014 22:37:46 +0000 (22:37 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 20 Apr 2014 22:37:46 +0000 (22:37 +0000)
commit7117d739d630f523aff1338e69019856bbf0d66b
treefd0f302d53ba99f9b99222a4a937ed25127a7304
parentf8107eb05111832e4ce4431b33ed08fb371b85ad
Use unique_ptr to handle ownership of synthesized args in DerivedArgList

This might be able to be simplified further by using Arg as a value type
in a linked list (to maintain pointer validity), but here's something
simple to start with.

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