diff options
author | 2023-03-13 11:58:31 -0600 | |
---|---|---|
committer | 2023-03-18 11:12:38 -0600 | |
commit | 0776344a3377b1ac01889b03e21f6ad20c267fa6 (patch) | |
tree | 96e4e5b0b93a8ca4f3f3f47e42dac342e2e93fbc /gdb/gdbtypes.h | |
parent | Unify arch_float_type and init_float_type (diff) | |
download | binutils-gdb-0776344a3377b1ac01889b03e21f6ad20c267fa6.tar.gz binutils-gdb-0776344a3377b1ac01889b03e21f6ad20c267fa6.tar.bz2 binutils-gdb-0776344a3377b1ac01889b03e21f6ad20c267fa6.zip |
Unify arch_decfloat_type and init_decfloat_type
This unifies arch_decfloat_type and init_decfloat_type by using a type
allocator.
Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r-- | gdb/gdbtypes.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index a819f50da0a..88a2270b234 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -2327,7 +2327,12 @@ extern struct type *init_float_type const struct floatformat **floatformats, enum bfd_endian byte_order = BFD_ENDIAN_UNKNOWN); -extern struct type *init_decfloat_type (struct objfile *, int, const char *); +/* Allocate a TYPE_CODE_DECFLOAT type structure using ALLOC. + BIT is the type size in bits. NAME is the type name. */ + +extern struct type *init_decfloat_type (type_allocator &alloc, int bit, + const char *name); + extern bool can_create_complex_type (struct type *); extern struct type *init_complex_type (const char *, struct type *); extern struct type *init_pointer_type (struct objfile *, int, const char *, @@ -2336,7 +2341,6 @@ extern struct type *init_fixed_point_type (struct objfile *, int, int, const char *); /* Helper functions to construct architecture-owned types. */ -extern struct type *arch_decfloat_type (struct gdbarch *, int, const char *); extern struct type *arch_pointer_type (struct gdbarch *, int, const char *, struct type *); |