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
80d8bf09
Commit
80d8bf09
authored
Apr 25, 2016
by
Christoph Mallon
Browse files
arm: Reduce code duplication a bit.
parent
d32c7529
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/arm/arm_finish.c
View file @
80d8bf09
...
...
@@ -41,11 +41,10 @@ static void arm_collect_frame_entity_nodes(ir_node *node, void *data)
const
ir_entity
*
entity
=
attr
->
entity
;
if
(
entity
!=
NULL
)
return
;
const
ir_mode
*
mode
=
attr
->
load_store_mode
;
be_fec_env_t
*
env
=
(
be_fec_env_t
*
)
data
;
be_load_needs_frame_entity
(
env
,
node
,
get_mode_size_bytes
(
mode
)
,
log2_floor
(
get_mode_size_bytes
(
mode
)
));
be_fec_env_t
*
const
env
=
(
be_fec_env_t
*
)
data
;
unsigned
const
size
=
get_mode_size_bytes
(
attr
->
load_store_
mode
)
;
be_load_needs_frame_entity
(
env
,
node
,
size
,
log2_floor
(
size
));
}
static
void
arm_set_frame_entity
(
ir_node
*
node
,
ir_entity
*
entity
,
...
...
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