diff options
author | Tom Tromey <tom@tromey.com> | 2018-01-05 17:26:20 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-01-17 11:28:44 -0700 |
commit | 50a820477b5d48d4c2d28ca1c22ba6d93c9fd7cb (patch) | |
tree | c3998bba00b7574526cbd5f4279f7277de40ffc0 /gdb/dwarf2read.c | |
parent | c89b44cdc52b6a9c0848a795689895e292ad1f46 (diff) | |
download | gdb-50a820477b5d48d4c2d28ca1c22ba6d93c9fd7cb.zip gdb-50a820477b5d48d4c2d28ca1c22ba6d93c9fd7cb.tar.gz gdb-50a820477b5d48d4c2d28ca1c22ba6d93c9fd7cb.tar.bz2 |
Remove objfile argument from add_dyn_prop
The objfile argument to add_dyn_prop is redundant, so this patch
removes it.
2018-01-17 Tom Tromey <tom@tromey.com>
* gdbtypes.h (add_dyn_prop): Remove objfile parameter.
* gdbtypes.c (add_dyn_prop): Remove objfile parameter.
(create_array_type_with_stride): Update.
* dwarf2read.c (set_die_type): Update.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 9d27638..53c57ef 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -25276,7 +25276,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) if (attr_form_is_block (attr)) { if (attr_to_dynamic_prop (attr, die, cu, &prop)) - add_dyn_prop (DYN_PROP_ALLOCATED, prop, type, objfile); + add_dyn_prop (DYN_PROP_ALLOCATED, prop, type); } else if (attr != NULL) { @@ -25291,7 +25291,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) if (attr_form_is_block (attr)) { if (attr_to_dynamic_prop (attr, die, cu, &prop)) - add_dyn_prop (DYN_PROP_ASSOCIATED, prop, type, objfile); + add_dyn_prop (DYN_PROP_ASSOCIATED, prop, type); } else if (attr != NULL) { @@ -25304,7 +25304,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) /* Read DW_AT_data_location and set in type. */ attr = dwarf2_attr (die, DW_AT_data_location, cu); if (attr_to_dynamic_prop (attr, die, cu, &prop)) - add_dyn_prop (DYN_PROP_DATA_LOCATION, prop, type, objfile); + add_dyn_prop (DYN_PROP_DATA_LOCATION, prop, type); if (dwarf2_per_objfile->die_type_hash == NULL) { |