Commit d3ea3c45 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

all: Use the more fitting id_mangle3() instead of id_mangle_u(..., new_id_from_*(...)).

parent 475a885f
......@@ -2502,10 +2502,9 @@ static void amd64_create_stacklayout(ir_graph *irg, amd64_cconv_t *cconv)
/* construct argument type */
assert(cconv != NULL);
ident *arg_type_id = new_id_from_str("arg_type");
ident *arg_id = id_mangle_u(get_entity_ident(entity), arg_type_id);
ir_type *arg_type = new_type_struct(arg_id);
size_t n_params = get_method_n_params(function_type);
ident *const arg_id = id_mangle3("", get_entity_ident(entity), "_arg_type");
ir_type *const arg_type = new_type_struct(arg_id);
size_t const n_params = get_method_n_params(function_type);
for (size_t p = 0; p < n_params; ++p) {
reg_or_stackslot_t *param = &cconv->parameters[p];
if (param->type == NULL)
......
......@@ -1731,9 +1731,8 @@ static void create_stacklayout(ir_graph *irg)
assert(cconv != NULL);
/* construct argument type */
ident *arg_type_id = id_mangle_u(get_entity_ident(entity),
new_id_from_str("arg_type"));
ir_type *arg_type = new_type_struct(arg_type_id);
ident *const arg_type_id = id_mangle3("", get_entity_ident(entity), "_arg_type");
ir_type *const arg_type = new_type_struct(arg_type_id);
for (unsigned p = 0, n_params = get_method_n_params(function_type);
p < n_params; ++p) {
reg_or_stackslot_t *param = &cconv->parameters[p];
......
......@@ -5863,8 +5863,7 @@ static void ia32_create_stacklayout(ir_graph *irg, ia32_cconv_t *cconv)
/* construct argument type */
assert(cconv != NULL);
ident *arg_type_id = new_id_from_str("arg_type");
ident *arg_id = id_mangle_u(get_entity_ident(entity), arg_type_id);
ident *arg_id = id_mangle3("", get_entity_ident(entity), "_arg_type");
ir_type *arg_type = new_type_struct(arg_id);
ir_type *frame_type = get_irg_frame_type(irg);
ir_entity *va_start_entity = NULL;
......
......@@ -169,7 +169,7 @@ static ir_type *compute_arg_type(ir_graph *irg, calling_convention_t *cconv,
ir_type *frame_type = get_irg_frame_type(irg);
size_t n_frame_members = get_compound_n_members(frame_type);
ir_type *res = new_type_struct(id_mangle_u(get_entity_ident(entity), new_id_from_chars("arg_type", 8)));
ir_type *const res = new_type_struct(id_mangle3("", get_entity_ident(entity), "_arg_type"));
/* search for existing value_param entities */
for (size_t f = n_frame_members; f-- > 0; ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment