diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-13 10:57:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-18 11:12:37 -0600 |
commit | f50b437c3da71d91dfb04db8e06b2cdb69d16294 (patch) | |
tree | ee0a8bab9c7fb41f789f1ef934776d98586f88fc /gdb/dwarf2 | |
parent | 2d39ccd3d1773b26ed8178bcd77375175c48ee62 (diff) | |
download | fsf-binutils-gdb-f50b437c3da71d91dfb04db8e06b2cdb69d16294.zip fsf-binutils-gdb-f50b437c3da71d91dfb04db8e06b2cdb69d16294.tar.gz fsf-binutils-gdb-f50b437c3da71d91dfb04db8e06b2cdb69d16294.tar.bz2 |
Unify arch_character_type and init_character_type
This unifies arch_character_type and init_character_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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index d676f00..a7871a3 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -15264,7 +15264,7 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) if (cu->lang () == language_fortran && name && startswith (name, "character(")) - type = init_character_type (objfile, bits, 1, name); + type = init_character_type (alloc, bits, 1, name); else type = dwarf2_init_integer_type (cu, objfile, bits, 1, name); break; @@ -15273,7 +15273,7 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) || cu->lang () == language_m2 || cu->lang () == language_pascal || cu->lang () == language_fortran) - type = init_character_type (objfile, bits, 0, name); + type = init_character_type (alloc, bits, 0, name); else type = dwarf2_init_integer_type (cu, objfile, bits, 0, name); break; @@ -15283,13 +15283,13 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) || cu->lang () == language_pascal || cu->lang () == language_fortran || cu->lang () == language_rust) - type = init_character_type (objfile, bits, 1, name); + type = init_character_type (alloc, bits, 1, name); else type = dwarf2_init_integer_type (cu, objfile, bits, 1, name); break; case DW_ATE_UTF: { - type = init_character_type (objfile, bits, 1, name); + type = init_character_type (alloc, bits, 1, name); return set_die_type (die, type, cu); } break; |