* dwarf2read.c (read_subroutine_type): Call make_function_type

instead of lookup_function_type.
This commit is contained in:
Corinna Vinschen 2004-10-06 08:46:21 +00:00
parent 709a48ba5e
commit 1326e61ba3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-10-06 Corinna Vinschen <vinschen@redhat.com>
* dwarf2read.c (read_subroutine_type): Call make_function_type
instead of lookup_function_type.
2004-10-05 Jim Blandy <jimb@redhat.com>
* linux-nat.c (_initialize_linux_nat): Rename child_ops.

View File

@ -4569,7 +4569,7 @@ read_subroutine_type (struct die_info *die, struct dwarf2_cu *cu)
return;
}
type = die_type (die, cu);
ftype = lookup_function_type (type);
ftype = make_function_type (type, (struct type **) 0);
/* All functions in C++ and Java have prototypes. */
attr = dwarf2_attr (die, DW_AT_prototyped, cu);