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
Showing
- include/clang/Driver/Action.h 18 additions, 13 deletionsinclude/clang/Driver/Action.h
- include/clang/Driver/Driver.h 3 additions, 2 deletionsinclude/clang/Driver/Driver.h
- lib/Driver/Action.cpp 33 additions, 34 deletionslib/Driver/Action.cpp
- lib/Driver/Driver.cpp 43 additions, 31 deletionslib/Driver/Driver.cpp
Loading
Please register or sign in to comment