diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-13 11:30:08 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-18 11:12:38 -0600 |
commit | 77c5f49648cc39d9e4b1bd0411998ec42375654b (patch) | |
tree | 3408ebafaa9c105fddb231e71005171f4be8df26 /gdb/rust-lang.c | |
parent | 46c04ea32f7f259432a68b002a13cdea86f9f902 (diff) | |
download | binutils-gdb-77c5f49648cc39d9e4b1bd0411998ec42375654b.tar.gz |
Unify arch_float_type and init_float_type
This unifies arch_float_type and init_float_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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 20292329af2..cb128f13f0e 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -1613,8 +1613,8 @@ rust_language::language_arch_info (struct gdbarch *gdbarch, struct type *usize_type = add (init_integer_type (alloc, length, 1, "usize")); - add (arch_float_type (gdbarch, 32, "f32", floatformats_ieee_single)); - add (arch_float_type (gdbarch, 64, "f64", floatformats_ieee_double)); + add (init_float_type (alloc, 32, "f32", floatformats_ieee_single)); + add (init_float_type (alloc, 64, "f64", floatformats_ieee_double)); add (init_integer_type (alloc, 0, 1, "()")); struct type *tem = make_cv_type (1, 0, u8_type, NULL); |