diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-13 09:53:35 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-18 11:12:37 -0600 |
commit | cc495054ad5cd22cfc3b3de5fc962af7f6b4e8d5 (patch) | |
tree | 25e65ef71b881a1355bda4ea239258d578e09efd /gdb/ft32-tdep.c | |
parent | 95751990e40d88986205ba3c0719b8afd3da0e7e (diff) | |
download | fsf-binutils-gdb-cc495054ad5cd22cfc3b3de5fc962af7f6b4e8d5.zip fsf-binutils-gdb-cc495054ad5cd22cfc3b3de5fc962af7f6b4e8d5.tar.gz fsf-binutils-gdb-cc495054ad5cd22cfc3b3de5fc962af7f6b4e8d5.tar.bz2 |
Remove arch_type
This removes arch_type, replacing all uses with the new type
allocator.
Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/ft32-tdep.c')
-rw-r--r-- | gdb/ft32-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |