diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-13 08:59:34 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-18 11:12:37 -0600 |
commit | 9fa83a7ade66a3f0ba42aa71417c54e0ec18b6aa (patch) | |
tree | 5e8aa84d2e74e6345c05a438efda6eb25adb4b99 /gdb/gdbtypes.h | |
parent | c9eb9f185472eef2e87684bed63424947f77b386 (diff) | |
download | binutils-gdb-9fa83a7ade66a3f0ba42aa71417c54e0ec18b6aa.tar.gz |
Remove alloc_type_copy
This removes alloc_type_copy, replacing all uses with the new type
allocator.
Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r-- | gdb/gdbtypes.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 861d0021d30..03f94709006 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -2186,12 +2186,8 @@ extern const struct floatformat *floatformats_bfloat16[BFD_ENDIAN_UNKNOWN]; #define TYPE_ZALLOC(t,size) (memset (TYPE_ALLOC (t, size), 0, size)) -/* Use alloc_type to allocate a type owned by an objfile. Use - alloc_type_copy to allocate a type with the same owner as a - pre-existing template type, no matter whether objfile or - gdbarch. */ +/* Use alloc_type to allocate a type owned by an objfile. */ extern struct type *alloc_type (struct objfile *); -extern struct type *alloc_type_copy (const struct type *); /* * This returns the target type (or NULL) of TYPE, also skipping past typedefs. */ |