mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-24 08:17:27 +00:00
Unify arch_character_type and init_character_type
This unifies arch_character_type and init_character_type by using a type allocator. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -486,7 +486,7 @@ build_go_types (struct gdbarch *gdbarch)
|
||||
type_allocator alloc (gdbarch);
|
||||
builtin_go_type->builtin_void = builtin_type (gdbarch)->builtin_void;
|
||||
builtin_go_type->builtin_char
|
||||
= arch_character_type (gdbarch, 8, 1, "char");
|
||||
= init_character_type (alloc, 8, 1, "char");
|
||||
builtin_go_type->builtin_bool
|
||||
= arch_boolean_type (gdbarch, 8, 0, "bool");
|
||||
builtin_go_type->builtin_int
|
||||
|
||||
Reference in New Issue
Block a user