diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-13 10:31:06 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-18 11:12:37 -0600 |
commit | 2d39ccd3d1773b26ed8178bcd77375175c48ee62 (patch) | |
tree | e4634ee4c847ad5e71d092188c6f38ab21ae2444 /gdb/gnu-v3-abi.c | |
parent | 333859402c7968dc718dae73ca0fbddbe096fc51 (diff) | |
download | gdb-2d39ccd3d1773b26ed8178bcd77375175c48ee62.zip gdb-2d39ccd3d1773b26ed8178bcd77375175c48ee62.tar.gz gdb-2d39ccd3d1773b26ed8178bcd77375175c48ee62.tar.bz2 |
Unify arch_integer_type and init_integer_type
This unifies arch_integer_type and init_integer_type by using a type
allocator.
Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r-- | gdb/gnu-v3-abi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index a3e2d73..12bc5b0 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -129,7 +129,7 @@ get_gdb_vtable_type (struct gdbarch *arch) /* ARCH can't give us the true ptrdiff_t type, so we guess. */ struct type *ptrdiff_type - = arch_integer_type (arch, gdbarch_ptr_bit (arch), 0, "ptrdiff_t"); + = init_integer_type (alloc, gdbarch_ptr_bit (arch), 0, "ptrdiff_t"); /* We assume no padding is necessary, since GDB doesn't know anything about alignment at the moment. If this assumption bites |