summaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-13 08:59:34 -0600
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:37 -0600
commit9fa83a7ade66a3f0ba42aa71417c54e0ec18b6aa (patch)
tree5e8aa84d2e74e6345c05a438efda6eb25adb4b99 /gdb/gdbtypes.h
parentc9eb9f185472eef2e87684bed63424947f77b386 (diff)
downloadbinutils-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.h6
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. */