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/go-lang.c | |
parent | 46c04ea32f7f259432a68b002a13cdea86f9f902 (diff) | |
download | gdb-77c5f49648cc39d9e4b1bd0411998ec42375654b.zip gdb-77c5f49648cc39d9e4b1bd0411998ec42375654b.tar.gz gdb-77c5f49648cc39d9e4b1bd0411998ec42375654b.tar.bz2 |
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/go-lang.c')
-rw-r--r-- | gdb/go-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/go-lang.c b/gdb/go-lang.c index 4b6027d..7561450 100644 --- a/gdb/go-lang.c +++ b/gdb/go-lang.c @@ -512,9 +512,9 @@ build_go_types (struct gdbarch *gdbarch) builtin_go_type->builtin_uint64 = init_integer_type (alloc, 64, 1, "uint64"); builtin_go_type->builtin_float32 - = arch_float_type (gdbarch, 32, "float32", floatformats_ieee_single); + = init_float_type (alloc, 32, "float32", floatformats_ieee_single); builtin_go_type->builtin_float64 - = arch_float_type (gdbarch, 64, "float64", floatformats_ieee_double); + = init_float_type (alloc, 64, "float64", floatformats_ieee_double); builtin_go_type->builtin_complex64 = init_complex_type ("complex64", builtin_go_type->builtin_float32); builtin_go_type->builtin_complex128 |