Introduce type_allocator
authorTom Tromey <tom@tromey.com>
Mon, 13 Mar 2023 14:51:34 +0000 (08:51 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 18 Mar 2023 17:12:37 +0000 (11:12 -0600)
commit6a4d297c62ce68a833814b9cf84626c42fc0cf78
tree602c362b180c575b532b8ac28f6ba8846755d5bb
parentd1de9f5c6c7d63303616e407fe562c92458d67b9
Introduce type_allocator

This introduces a new type_allocator class.  This class will be used
to abstract out the placement of new types, so that type-creation code
can be simplified and shared.

Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
gdb/gdbtypes.c
gdb/gdbtypes.h