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
790bf8a4
Commit
790bf8a4
authored
Oct 11, 2008
by
Christoph Mallon
Browse files
Remove the unused parameter const arch_env_t *env from arch_get_frame_entity().
[r22678]
parent
641c8d10
Changes
6
Hide whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
790bf8a4
...
...
@@ -2399,7 +2399,7 @@ static int process_stack_bias(be_abi_irg_t *env, ir_node *bl, int real_bias)
If so, set the true offset (including the bias) for that
node.
*/
ir_entity
*
ent
=
arch_get_frame_entity
(
arch_env
,
irn
);
ir_entity
*
ent
=
arch_get_frame_entity
(
irn
);
if
(
ent
)
{
int
bias
=
omit_fp
?
real_bias
:
0
;
int
offset
=
get_stack_entity_offset
(
&
env
->
frame
,
ent
,
bias
);
...
...
ir/be/bearch.c
View file @
790bf8a4
...
...
@@ -96,10 +96,9 @@ void arch_set_frame_offset(ir_node *irn, int offset)
ops
->
set_frame_offset
(
irn
,
offset
);
}
ir_entity
*
arch_get_frame_entity
(
const
arch_env_t
*
env
,
const
ir_node
*
irn
)
ir_entity
*
arch_get_frame_entity
(
const
ir_node
*
irn
)
{
const
arch_irn_ops_t
*
ops
=
get_irn_ops
(
irn
);
(
void
)
env
;
// TODO remove parameter
return
ops
->
get_frame_entity
(
irn
);
}
...
...
ir/be/bearch.h
View file @
790bf8a4
...
...
@@ -135,7 +135,7 @@ extern const char *arch_irn_flag_str(arch_irn_flags_t flag);
void
arch_set_frame_offset
(
ir_node
*
irn
,
int
bias
);
extern
ir_entity
*
arch_get_frame_entity
(
const
arch_env_t
*
env
,
const
ir_node
*
irn
);
ir_entity
*
arch_get_frame_entity
(
const
ir_node
*
irn
);
extern
void
arch_set_frame_entity
(
const
arch_env_t
*
env
,
ir_node
*
irn
,
ir_entity
*
ent
);
extern
int
arch_get_sp_bias
(
const
arch_env_t
*
env
,
ir_node
*
irn
);
...
...
ir/be/bespillslots.c
View file @
790bf8a4
...
...
@@ -575,7 +575,7 @@ static void assign_spill_entity(const arch_env_t *arch_env, ir_node *node,
/* beware: we might have Stores with Memory Proj's, ia32 fisttp for instance */
node
=
skip_Proj
(
node
);
assert
(
arch_get_frame_entity
(
arch_env
,
node
)
==
NULL
);
assert
(
arch_get_frame_entity
(
node
)
==
NULL
);
arch_set_frame_entity
(
arch_env
,
node
,
entity
);
}
...
...
ir/be/beverify.c
View file @
790bf8a4
...
...
@@ -432,7 +432,7 @@ void be_check_entity(be_verify_spillslots_env_t *env, ir_node *node, ir_entity *
static
void
collect_spill
(
be_verify_spillslots_env_t
*
env
,
ir_node
*
node
,
ir_node
*
reload
,
ir_entity
*
ent
)
{
ir_entity
*
spillent
=
arch_get_frame_entity
(
env
->
arch_env
,
node
);
ir_entity
*
spillent
=
arch_get_frame_entity
(
node
);
be_check_entity
(
env
,
node
,
spillent
);
get_spill
(
env
,
node
,
ent
);
...
...
@@ -543,7 +543,7 @@ static void collect_spills_walker(ir_node *node, void *data) {
env
->
problem_found
=
1
;
return
;
}
ent
=
arch_get_frame_entity
(
env
->
arch_env
,
node
);
ent
=
arch_get_frame_entity
(
node
);
be_check_entity
(
env
,
node
,
ent
);
collect
(
env
,
spill
,
node
,
ent
);
...
...
@@ -588,7 +588,7 @@ static void check_lonely_spills(ir_node *node, void *data) {
if
(
be_is_Spill
(
node
)
||
(
is_Proj
(
node
)
&&
be_is_MemPerm
(
get_Proj_pred
(
node
))))
{
spill_t
*
spill
=
find_spill
(
env
,
node
);
if
(
be_is_Spill
(
node
))
{
ir_entity
*
ent
=
arch_get_frame_entity
(
env
->
arch_env
,
node
);
ir_entity
*
ent
=
arch_get_frame_entity
(
node
);
be_check_entity
(
env
,
node
,
ent
);
}
...
...
ir/be/ia32/ia32_transform.c
View file @
790bf8a4
...
...
@@ -3440,7 +3440,7 @@ static ir_node *gen_be_FrameAddr(ir_node *node)
ir_node
*
new_node
;
new_node
=
new_rd_ia32_Lea
(
dbgi
,
irg
,
block
,
new_op
,
noreg
);
set_ia32_frame_ent
(
new_node
,
arch_get_frame_entity
(
env_cg
->
arch_env
,
node
));
set_ia32_frame_ent
(
new_node
,
arch_get_frame_entity
(
node
));
set_ia32_use_frame
(
new_node
);
SET_IA32_ORIG_NODE
(
new_node
,
ia32_get_old_node_name
(
env_cg
,
node
));
...
...
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