mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
Unify arch_integer_type and init_integer_type
This unifies arch_integer_type and init_integer_type by using a type allocator. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@ -281,11 +281,13 @@ build_m2_types (struct gdbarch *gdbarch)
|
||||
{
|
||||
struct builtin_m2_type *builtin_m2_type = new struct builtin_m2_type;
|
||||
|
||||
type_allocator alloc (gdbarch);
|
||||
|
||||
/* Modula-2 "pervasive" types. NOTE: these can be redefined!!! */
|
||||
builtin_m2_type->builtin_int
|
||||
= arch_integer_type (gdbarch, gdbarch_int_bit (gdbarch), 0, "INTEGER");
|
||||
= init_integer_type (alloc, gdbarch_int_bit (gdbarch), 0, "INTEGER");
|
||||
builtin_m2_type->builtin_card
|
||||
= arch_integer_type (gdbarch, gdbarch_int_bit (gdbarch), 1, "CARDINAL");
|
||||
= init_integer_type (alloc, gdbarch_int_bit (gdbarch), 1, "CARDINAL");
|
||||
builtin_m2_type->builtin_real
|
||||
= arch_float_type (gdbarch, gdbarch_float_bit (gdbarch), "REAL",
|
||||
gdbarch_float_format (gdbarch));
|
||||
|
Reference in New Issue
Block a user