Remove alloc_type_copy

This removes alloc_type_copy, replacing all uses with the new type
allocator.

Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2023-03-13 08:59:34 -06:00
parent c9eb9f1854
commit 9fa83a7ade
5 changed files with 26 additions and 39 deletions

View File

@@ -939,7 +939,7 @@ rust_composite_type (struct type *original,
const char *field1, struct type *type1,
const char *field2, struct type *type2)
{
struct type *result = alloc_type_copy (original);
struct type *result = type_allocator (original).new_type ();
int i, nfields, bitpos;
nfields = 0;