]> granicus.if.org Git - clang/commit
unique_ptrify Driver Action handling
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 29 Aug 2014 07:25:23 +0000 (07:25 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 29 Aug 2014 07:25:23 +0000 (07:25 +0000)
commitf11dfe02ad387ab7421599c1a008a36977866bcc
treeec166d709b41487e214d5fc1a769472ad9de8497
parenta0a1a1e037d04ed13777407c69b4a7dfe838655e
unique_ptrify Driver Action handling

It hits a limit when we reach ActionList, which is used for dynamic
conditional ownership, so we lose type safety there.

This did expose at least one caller "lying" about ownership (passing
ownership to an Action, then updating the Action to specify that it
doesn't actually own the thing that was passed) - changing this to
unique_ptr just makes that oddity more obvious.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216713 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Action.h
include/clang/Driver/Driver.h
lib/Driver/Action.cpp
lib/Driver/Driver.cpp