mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user