aboutsummaryrefslogtreecommitdiff
path: root/gdb/d-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-13 10:57:56 -0600
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:37 -0600
commitf50b437c3da71d91dfb04db8e06b2cdb69d16294 (patch)
treeee0a8bab9c7fb41f789f1ef934776d98586f88fc /gdb/d-lang.c
parent2d39ccd3d1773b26ed8178bcd77375175c48ee62 (diff)
downloadbinutils-f50b437c3da71d91dfb04db8e06b2cdb69d16294.zip
binutils-f50b437c3da71d91dfb04db8e06b2cdb69d16294.tar.gz
binutils-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/d-lang.c')
-rw-r--r--gdb/d-lang.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/d-lang.c b/gdb/d-lang.c
index af9a81d..8e5262d 100644
--- a/gdb/d-lang.c
+++ b/gdb/d-lang.c
@@ -262,11 +262,11 @@ build_d_types (struct gdbarch *gdbarch)
/* Character types. */
builtin_d_type->builtin_char
- = arch_character_type (gdbarch, 8, 1, "char");
+ = init_character_type (alloc, 8, 1, "char");
builtin_d_type->builtin_wchar
- = arch_character_type (gdbarch, 16, 1, "wchar");
+ = init_character_type (alloc, 16, 1, "wchar");
builtin_d_type->builtin_dchar
- = arch_character_type (gdbarch, 32, 1, "dchar");
+ = init_character_type (alloc, 32, 1, "dchar");
return builtin_d_type;
}