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:
Tom Tromey
2023-03-13 11:09:08 -06:00
parent f50b437c3d
commit 46c04ea32f
11 changed files with 29 additions and 44 deletions

View File

@@ -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
{