I failed at git and missed adding/lost changes on the wrong branch, the
result being that I didn't incorporate fixes resulting from Yao's review
comments. This patch fixes that.
There are two places where we should use the unique pointer typedef, and
ChangeLog entries missing.
gdb/ChangeLog:
* target-descriptions.c (struct tdesc_feature) <registers>: Use
tdesc_reg_up typedef.
(struct target_desc) <features>: Use tdesc_feature_up typedef.
+2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
+
+ * target-descriptions.c (struct tdesc_feature) <registers>: Use
+ tdesc_reg_up typedef.
+ (struct target_desc) <features>: Use tdesc_feature_up typedef.
+
2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
* target-descriptions.c (struct tdesc_type): Use default
(tdesc_register_in_reggroup_p): Adjust.
(class print_c_tdesc) <visit>: Adjust.
(class print_c_feature) <visit>: Adjust.
+ * features/arc-arcompact.c: Re-generate.
+ * features/arc-v2.c: Re-generate.
2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
std::string name;
/* The registers associated with this feature. */
- std::vector<std::unique_ptr<tdesc_reg>> registers;
+ std::vector<tdesc_reg_up> registers;
/* The types associated with this feature. */
std::vector<tdesc_type_up> types;
std::vector<property> properties;
/* The features associated with this target. */
- std::vector<std::unique_ptr<tdesc_feature>> features;
+ std::vector<tdesc_feature_up> features;
void accept (tdesc_element_visitor &v) const override
{