forked from Imagelibrary/binutils-gdb
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:
@@ -262,11 +262,11 @@ build_d_types (struct gdbarch *gdbarch)
|
||||
|
||||
/* Character types. */
|
||||
builtin_d_type->builtin_char
|
||||
= arch_character_type (gdbarch, 8, 1, "char");
|
||||
= init_character_type (alloc, 8, 1, "char");
|
||||
builtin_d_type->builtin_wchar
|
||||
= arch_character_type (gdbarch, 16, 1, "wchar");
|
||||
= init_character_type (alloc, 16, 1, "wchar");
|
||||
builtin_d_type->builtin_dchar
|
||||
= arch_character_type (gdbarch, 32, 1, "dchar");
|
||||
= init_character_type (alloc, 32, 1, "dchar");
|
||||
|
||||
return builtin_d_type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user