aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-05-04 15:26:58 -0600
committerTom Tromey <tom@tromey.com>2021-05-05 00:06:17 -0600
commit0f237df286ecaf366e19601917bedaf6224929d0 (patch)
tree181d82fe9796bb364de8241a78e5a82c3782c260 /gcc
parent0d5a0b9af5b9c0f07eabcdb1a7a6454c06cdf8ae (diff)
downloadgcc-0f237df286ecaf366e19601917bedaf6224929d0.zip
gcc-0f237df286ecaf366e19601917bedaf6224929d0.tar.gz
gcc-0f237df286ecaf366e19601917bedaf6224929d0.tar.bz2
libcc1: add more uses of 'deleter'
This changes libcc1 to use the 'deleter' template in a few more places. The template and basic specializations are moved to a new header, then some unmarshall functions are changed to use this code. This change avoids the need to repeat cleanup code in the unmarshallers. libcc1 * rpc.hh (deleter): Move template and some specializations to deleter.hh. (argument_wrapper<const T *>): Use cc1_plugin::unique_ptr. * marshall.cc (cc1_plugin::unmarshall): Use cc1_plugin::unique_ptr. * marshall-cp.hh (deleter): New specializations. (unmarshall): Use cc1_plugin::unique_ptr. * deleter.hh: New file.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions