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:
parent
333859402c
commit
2d39ccd3d1
21 changed files with 201 additions and 205 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue