diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-13 11:09:08 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-18 11:12:38 -0600 |
commit | 46c04ea32f7f259432a68b002a13cdea86f9f902 (patch) | |
tree | 889d1762b16d7e400171dc36b6903b6b92430a73 /gdb/rust-lang.c | |
parent | f50b437c3da71d91dfb04db8e06b2cdb69d16294 (diff) | |
download | gdb-46c04ea32f7f259432a68b002a13cdea86f9f902.zip gdb-46c04ea32f7f259432a68b002a13cdea86f9f902.tar.gz gdb-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/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index be0a710..2029232 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -1596,7 +1596,7 @@ rust_language::language_arch_info (struct gdbarch *gdbarch, type_allocator alloc (gdbarch); struct type *bool_type - = add (arch_boolean_type (gdbarch, 8, 1, "bool")); + = add (init_boolean_type (alloc, 8, 1, "bool")); add (init_character_type (alloc, 32, 1, "char")); add (init_integer_type (alloc, 8, 0, "i8")); struct type *u8_type |