forked from Imagelibrary/binutils-gdb
Unify arch_boolean_type and init_boolean_type
This unifies arch_boolean_type and init_boolean_type by using a type allocator. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -204,7 +204,7 @@ build_d_types (struct gdbarch *gdbarch)
|
||||
type_allocator alloc (gdbarch);
|
||||
builtin_d_type->builtin_void = builtin_type (gdbarch)->builtin_void;
|
||||
builtin_d_type->builtin_bool
|
||||
= arch_boolean_type (gdbarch, 8, 1, "bool");
|
||||
= init_boolean_type (alloc, 8, 1, "bool");
|
||||
builtin_d_type->builtin_byte
|
||||
= init_integer_type (alloc, 8, 0, "byte");
|
||||
builtin_d_type->builtin_ubyte
|
||||
|
||||
Reference in New Issue
Block a user