From 522553837be31e09d182a8974429650f68c108f3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 20 Jan 2023 07:16:34 -0700 Subject: Remove allocate_block and allocate_global_block This removes allocate_block and allocate_global_block in favor of simply calling 'new'. --- gdb/mdebugread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/mdebugread.c') diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 17038639fa8..793795c903a 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -4723,7 +4723,7 @@ static struct block * new_block (struct objfile *objfile, enum block_type type, enum language language) { - struct block *retval = allocate_block (&objfile->objfile_obstack); + struct block *retval = new (&objfile->objfile_obstack) block; if (type == FUNCTION_BLOCK) retval->set_multidict (mdict_create_linear_expandable (language)); -- cgit v1.2.1