mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
* gdbtypes.h (make_function_type): Remove OBJFILE parameter.
* gdbtypes.c (make_function_type): Remove OBJFILE parameter. (lookup_function_type): Update call. * stabsread.c (read_type): Likewise. * dwarf2read.c (read_subroutine_type): Use lookup_function_type instead of make_function_type. * jv-lang.c (type_from_class): Likewise. Do not allocate types on the fake "dynamics" obstack.
This commit is contained in:
@ -1682,8 +1682,7 @@ again:
|
||||
|
||||
case 'f': /* Function returning another type */
|
||||
type1 = read_type (pp, objfile);
|
||||
type = make_function_type (type1, dbx_lookup_type (typenums, objfile),
|
||||
objfile);
|
||||
type = make_function_type (type1, dbx_lookup_type (typenums, objfile));
|
||||
break;
|
||||
|
||||
case 'g': /* Prototyped function. (Sun) */
|
||||
@ -1707,7 +1706,7 @@ again:
|
||||
struct type *return_type = read_type (pp, objfile);
|
||||
struct type *func_type
|
||||
= make_function_type (return_type,
|
||||
dbx_lookup_type (typenums, objfile), objfile);
|
||||
dbx_lookup_type (typenums, objfile));
|
||||
struct type_list {
|
||||
struct type *type;
|
||||
struct type_list *next;
|
||||
|
Reference in New Issue
Block a user