Re: [RFA 5/6] Remove objfile argument from add_dyn_prop

Yao Qi
2018-01-10T13:01:24Z

Tom Tromey <tom@tromey.com> writes:

> @@ -25116,7 +25116,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);
> }

Before the patch, the objfile is
cu->per_cu->dwarf2_per_objfile->objfile, but after the patch, the
objfile is TYPE_OBJFILE (type), are they equivalent?

--
Yao (齐尧)