diff options
author | Tom Tromey <tom@tromey.com> | 2021-05-04 15:26:58 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-05-05 00:06:17 -0600 |
commit | 0d5a0b9af5b9c0f07eabcdb1a7a6454c06cdf8ae (patch) | |
tree | d808982bd5641a7b977e5b69c33b36edd3aa08e1 /gcc | |
parent | e702c60e65cf9c13587d571cdd158bca74f4c2e2 (diff) | |
download | gcc-0d5a0b9af5b9c0f07eabcdb1a7a6454c06cdf8ae.zip gcc-0d5a0b9af5b9c0f07eabcdb1a7a6454c06cdf8ae.tar.gz gcc-0d5a0b9af5b9c0f07eabcdb1a7a6454c06cdf8ae.tar.bz2 |
libcc1: add deleter objects
This adds deleter objects for various kinds of protocol pointers to
libcc1. Existing specializations of argument_wrapper are then
replaced with a single specialization that handles all pointer types
via the appropriate deleter. The result here is a bit nicer because
the argument_wrapper boilerplate code is completely shared, leaving
just the memory-management detail to the particular specializations.
libcc1
* rpc.hh (struct deleter): New template class and
specializations.
(argument_wrapper): Remove specializations. Add specialization
for any pointer type.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions