/* associate the lowered type with the original one for easier access */
set_method_calling_convention(lowered, get_method_calling_convention(mtp) | cc_compound_ret);
+ set_method_additional_properties(lowered, get_method_additional_properties(mtp));
set_lowered_type(mtp, lowered);
pmap_insert(lowered_mtps, mtp, lowered);
return mtp;
}
- res = new_type_method(n_param, n_res);
+ res = new_d_type_method(n_param, n_res, get_type_dbg_info(mtp));
/* set param types and result types */
for (i = n_param = 0; i < orig_n_params; ++i) {
set_method_res_type(res, n_res++, tp);
}
}
+
+ set_method_variadicity(res, get_method_variadicity(mtp));
+ set_method_calling_convention(res, get_method_calling_convention(mtp));
+ set_method_additional_properties(res, get_method_additional_properties(mtp));
+
set_lowered_type(mtp, res);
set_type_link(res, mtp);