diff options
author | Tom Tromey <tromey@adacore.com> | 2023-09-05 12:43:50 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-09-19 13:28:42 -0600 |
commit | d559227272d72e554222361058163b9dc94de2f0 (patch) | |
tree | eaa5cdab9bae387823ba7095460e42b010377234 /gdb/dwarf2/read.c | |
parent | 8e032233a013cedc72c52b57a349c47522138594 (diff) | |
download | gdb-d559227272d72e554222361058163b9dc94de2f0.zip gdb-d559227272d72e554222361058163b9dc94de2f0.tar.gz gdb-d559227272d72e554222361058163b9dc94de2f0.tar.bz2 |
Pass a type allocator to init_fixed_point_type
init_fixed_point_type currently takes an objfile and creates its own
type allocator. However, for a later patch it is more convenient if
this function accepts a type allocator. This patch makes this change.
Diffstat (limited to 'gdb/dwarf2/read.c')
-rw-r--r-- | gdb/dwarf2/read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 0f4d991..40cdc16 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -15380,11 +15380,11 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) } break; case DW_ATE_signed_fixed: - type = init_fixed_point_type (objfile, bits, 0, name); + type = init_fixed_point_type (alloc, bits, 0, name); finish_fixed_point_type (type, gnat_encoding_suffix, die, cu); break; case DW_ATE_unsigned_fixed: - type = init_fixed_point_type (objfile, bits, 1, name); + type = init_fixed_point_type (alloc, bits, 1, name); finish_fixed_point_type (type, gnat_encoding_suffix, die, cu); break; |