forked from Imagelibrary/binutils-gdb
Remove arch_type
This removes arch_type, replacing all uses with the new type allocator. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -185,7 +185,8 @@ make_types (struct gdbarch *arch)
|
||||
|
||||
/* The builtin_type_mumble variables are sometimes uninitialized when
|
||||
this is called, so we avoid using them. */
|
||||
tdep->voyd = arch_type (arch, TYPE_CODE_VOID, TARGET_CHAR_BIT, "void");
|
||||
type_allocator alloc (arch);
|
||||
tdep->voyd = alloc.new_type (TYPE_CODE_VOID, TARGET_CHAR_BIT, "void");
|
||||
tdep->ptr_voyd
|
||||
= arch_pointer_type (arch, gdbarch_ptr_bit (arch), NULL, tdep->voyd);
|
||||
tdep->func_voyd = lookup_function_type (tdep->voyd);
|
||||
|
||||
Reference in New Issue
Block a user