From 8a17bdd9ccc26a7a0a2a208a9b870512b2490324 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 13 Mar 2023 09:01:08 -0600 Subject: Remove alloc_type This removes alloc_type, replacing all uses with the new type allocator. Reviewed-By: Simon Marchi --- gdb/stabsread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/stabsread.c') 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); -- cgit v1.2.1