From cc495054ad5cd22cfc3b3de5fc962af7f6b4e8d5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 13 Mar 2023 09:53:35 -0600 Subject: Remove arch_type This removes arch_type, replacing all uses with the new type allocator. Reviewed-By: Simon Marchi --- gdb/ft32-tdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/ft32-tdep.c') diff --git a/gdb/ft32-tdep.c b/gdb/ft32-tdep.c index 7a69da6..7182185 100644 --- a/gdb/ft32-tdep.c +++ b/gdb/ft32-tdep.c @@ -573,7 +573,8 @@ ft32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* Create a type for PC. We can't use builtin types here, as they may not be defined. */ - void_type = arch_type (gdbarch, TYPE_CODE_VOID, TARGET_CHAR_BIT, "void"); + type_allocator alloc (gdbarch); + void_type = alloc.new_type (TYPE_CODE_VOID, TARGET_CHAR_BIT, "void"); func_void_type = make_function_type (void_type, NULL); tdep->pc_type = arch_pointer_type (gdbarch, 4 * TARGET_CHAR_BIT, NULL, func_void_type); -- cgit v1.1