mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Unify arch_float_type and init_float_type
This unifies arch_float_type and init_float_type by using a type allocator. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -289,7 +289,7 @@ build_m2_types (struct gdbarch *gdbarch)
|
||||
builtin_m2_type->builtin_card
|
||||
= init_integer_type (alloc, gdbarch_int_bit (gdbarch), 1, "CARDINAL");
|
||||
builtin_m2_type->builtin_real
|
||||
= arch_float_type (gdbarch, gdbarch_float_bit (gdbarch), "REAL",
|
||||
= init_float_type (alloc, gdbarch_float_bit (gdbarch), "REAL",
|
||||
gdbarch_float_format (gdbarch));
|
||||
builtin_m2_type->builtin_char
|
||||
= init_character_type (alloc, TARGET_CHAR_BIT, 1, "CHAR");
|
||||
|
||||
Reference in New Issue
Block a user