libcc1: use std::vector when building function types
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:16 +0000 (00:06 -0600)
commite702c60e65cf9c13587d571cdd158bca74f4c2e2
tree31d006d9df56bda3152d914660c879297844adab
parent410d5719b78519d8c53855a4c789cc0d656b480a
libcc1: use std::vector when building function types

This changes libcc1 to use std::vector in the code that builds
function types.  This avoids some explicit memory management.

libcc1

* libcp1plugin.cc (plugin_build_function_type): Use std::vector.
* libcc1plugin.cc (plugin_build_function_type): Use std::vector.
libcc1/libcc1plugin.cc
libcc1/libcp1plugin.cc