aboutsummaryrefslogtreecommitdiff
path: root/gdb/d-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-13 11:09:08 -0600
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:38 -0600
commit46c04ea32f7f259432a68b002a13cdea86f9f902 (patch)
tree889d1762b16d7e400171dc36b6903b6b92430a73 /gdb/d-lang.c
parentf50b437c3da71d91dfb04db8e06b2cdb69d16294 (diff)
downloadbinutils-46c04ea32f7f259432a68b002a13cdea86f9f902.zip
binutils-46c04ea32f7f259432a68b002a13cdea86f9f902.tar.gz
binutils-46c04ea32f7f259432a68b002a13cdea86f9f902.tar.bz2
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>
Diffstat (limited to 'gdb/d-lang.c')
-rw-r--r--gdb/d-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/d-lang.c b/gdb/d-lang.c
index 8e5262d..a970281 100644
--- a/gdb/d-lang.c
+++ b/gdb/d-lang.c
@@ -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