]> git.ipfire.org Git - thirdparty/gcc.git/commit
libcc1: use unique_ptr more
authorTom Tromey <tom@tromey.com>
Tue, 4 May 2021 21:26:58 +0000 (15:26 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 5 May 2021 06:06:17 +0000 (00:06 -0600)
commit30c9604c2c04587094207b3dc91f472acb6f331d
treeca7aab1ad8c8d17ffbdbbeeb1ce9d4d27729f448
parent0f237df286ecaf366e19601917bedaf6224929d0
libcc1: use unique_ptr more

This changes libcc1 to use unique_ptr in a few more places, removing
some manual memory management.

libcc1

* libcp1.cc (struct libcp1) <connection, compilerp>: Use
unique_ptr.
(~libcp1): Remove.
(libcp1_compile, libcp1_set_triplet_regexp)
(libcp1_set_driver_filename): Update.
* libcc1.cc (struct libcc1) <connection, compilerp>: Use
unique_ptr.
(~libcc1): Remove.
(libcc1_set_triplet_regexp, libcc1_set_driver_filename)
(libcc1_compile): Update.
libcc1/libcc1.cc
libcc1/libcp1.cc