Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
13317161
Commit
13317161
authored
Dec 14, 2015
by
Matthias Braun
Browse files
sparc/arm: Fix duplicate entities by using create_compilerlib_entity()
parent
aed38c30
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/arm/arm_lower64.c
View file @
13317161
...
...
@@ -116,12 +116,8 @@ static ir_entity *make_divmod(char const *const name, ir_type *const even, ir_ty
set_method_res_type
(
mtp
,
2
,
even
);
set_method_res_type
(
mtp
,
3
,
odd
);
ident
*
const
id
=
new_id_from_str
(
name
);
ir_type
*
const
glob
=
get_glob_type
();
ir_entity
*
const
ent
=
new_global_entity
(
glob
,
id
,
mtp
,
ir_visibility_external
,
IR_LINKAGE_DEFAULT
);
return
ent
;
ident
*
const
id
=
new_id_from_str
(
name
);
return
create_compilerlib_entity
(
id
,
mtp
);
}
static
void
create_divmod_intrinsics
(
ir_mode
*
mode_unsigned
,
...
...
ir/be/sparc/sparc_lower64.c
View file @
13317161
...
...
@@ -116,12 +116,9 @@ static ir_entity *create_64_intrinsic_fkt(ir_type *method, const ir_op *op,
}
else
{
panic
(
"cannot lower unexpected 64bit operation %s"
,
get_op_name
(
op
));
}
ident
*
id
=
new_id_from_str
(
name
);
ir_type
*
glob
=
get_glob_type
();
ir_entity
*
result
=
new_global_entity
(
glob
,
id
,
method
,
ir_visibility_external
,
IR_LINKAGE_DEFAULT
);
return
result
;
ident
*
const
id
=
new_id_from_str
(
name
);
return
create_compilerlib_entity
(
id
,
method
);
}
void
sparc_lower_64bit
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment