mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
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:
@@ -568,7 +568,7 @@ read_base_type (struct ctf_context *ccp, ctf_id_t tid)
|
||||
if (ischar)
|
||||
type = init_character_type (alloc, TARGET_CHAR_BIT, !issigned, name);
|
||||
else if (isbool)
|
||||
type = init_boolean_type (of, gdbarch_int_bit (gdbarch),
|
||||
type = init_boolean_type (alloc, gdbarch_int_bit (gdbarch),
|
||||
!issigned, name);
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user