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/stabsread.c | |
parent | 9fa83a7ade66a3f0ba42aa71417c54e0ec18b6aa (diff) | |
download | binutils-gdb-8a17bdd9ccc26a7a0a2a208a9b870512b2490324.tar.gz |
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/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index cfe245325f5..8eac7ab6261 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -346,7 +346,7 @@ dbx_alloc_type (int typenums[2], struct objfile *objfile) if (typenums[0] == -1) { - return (alloc_type (objfile)); + return type_allocator (objfile).new_type (); } type_addr = dbx_lookup_type (typenums, objfile); @@ -356,7 +356,7 @@ dbx_alloc_type (int typenums[2], struct objfile *objfile) We will fill it in later if we find out how. */ if (*type_addr == 0) { - *type_addr = alloc_type (objfile); + *type_addr = type_allocator (objfile).new_type (); } return (*type_addr); |