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/dwarf2 | |
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/dwarf2')
-rw-r--r-- | gdb/dwarf2/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index ba65cf6..06aa4e3 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -15014,7 +15014,7 @@ dwarf2_init_float_type (struct objfile *objfile, int bits, const char *name, type_allocator alloc (objfile); format = gdbarch_floatformat_for_type (gdbarch, name_hint, bits); if (format) - type = init_float_type (objfile, bits, name, format, byte_order); + type = init_float_type (alloc, bits, name, format, byte_order); else type = alloc.new_type (TYPE_CODE_ERROR, bits, name); |