diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-13 09:01:08 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-18 11:12:37 -0600 |
commit | 8a17bdd9ccc26a7a0a2a208a9b870512b2490324 (patch) | |
tree | 5eab413592f52690e4ed5fca4198c7d81d4b82d5 /gdb/ctfread.c | |
parent | 9fa83a7ade66a3f0ba42aa71417c54e0ec18b6aa (diff) | |
download | gdb-8a17bdd9ccc26a7a0a2a208a9b870512b2490324.zip gdb-8a17bdd9ccc26a7a0a2a208a9b870512b2490324.tar.gz gdb-8a17bdd9ccc26a7a0a2a208a9b870512b2490324.tar.bz2 |
Remove alloc_type
This removes alloc_type, replacing all uses with the new type
allocator.
Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/ctfread.c')
-rw-r--r-- | gdb/ctfread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ctfread.c b/gdb/ctfread.c index 69906c9..94597af 100644 --- a/gdb/ctfread.c +++ b/gdb/ctfread.c @@ -629,7 +629,7 @@ read_structure_type (struct ctf_context *ccp, ctf_id_t tid) struct type *type; uint32_t kind; - type = alloc_type (of); + type = type_allocator (of).new_type (); const char *name = ctf_type_name_raw (fp, tid); if (name != nullptr && strlen (name) != 0) @@ -688,7 +688,7 @@ read_func_kind_type (struct ctf_context *ccp, ctf_id_t tid) ctf_funcinfo_t cfi; uint32_t argc; - type = alloc_type (of); + type = type_allocator (of).new_type (); type->set_code (TYPE_CODE_FUNC); if (ctf_func_type_info (fp, tid, &cfi) < 0) @@ -740,7 +740,7 @@ read_enum_type (struct ctf_context *ccp, ctf_id_t tid) ctf_dict_t *fp = ccp->fp; struct type *type; - type = alloc_type (of); + type = type_allocator (of).new_type (); const char *name = ctf_type_name_raw (fp, tid); if (name != nullptr && strlen (name) != 0) @@ -976,7 +976,7 @@ read_forward_type (struct ctf_context *ccp, ctf_id_t tid) struct type *type; uint32_t kind; - type = alloc_type (of); + type = type_allocator (of).new_type (); const char *name = ctf_type_name_raw (fp, tid); if (name != nullptr && strlen (name) != 0) |