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
641c8d10
Commit
641c8d10
authored
Oct 11, 2008
by
Christoph Mallon
Browse files
Remove the unused parameter const arch_env_t *env from arch_set_frame_offset().
[r22677]
parent
d64ea79e
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
641c8d10
...
...
@@ -2403,7 +2403,7 @@ static int process_stack_bias(be_abi_irg_t *env, ir_node *bl, int real_bias)
if
(
ent
)
{
int
bias
=
omit_fp
?
real_bias
:
0
;
int
offset
=
get_stack_entity_offset
(
&
env
->
frame
,
ent
,
bias
);
arch_set_frame_offset
(
arch_env
,
irn
,
offset
);
arch_set_frame_offset
(
irn
,
offset
);
DBG
((
env
->
dbg
,
LEVEL_2
,
"%F has offset %d (including bias %d)
\n
"
,
ent
,
offset
,
bias
));
}
...
...
ir/be/bearch.c
View file @
641c8d10
...
...
@@ -90,10 +90,9 @@ const arch_register_req_t *arch_get_register_req(const ir_node *irn, int pos)
return
ops
->
get_irn_reg_req
(
irn
,
pos
);
}
void
arch_set_frame_offset
(
const
arch_env_t
*
env
,
ir_node
*
irn
,
int
offset
)
void
arch_set_frame_offset
(
ir_node
*
irn
,
int
offset
)
{
const
arch_irn_ops_t
*
ops
=
get_irn_ops
(
irn
);
(
void
)
env
;
// TODO remove parameter
ops
->
set_frame_offset
(
irn
,
offset
);
}
...
...
ir/be/bearch.h
View file @
641c8d10
...
...
@@ -133,7 +133,7 @@ typedef enum arch_irn_flags_t {
*/
extern
const
char
*
arch_irn_flag_str
(
arch_irn_flags_t
flag
);
extern
void
arch_set_frame_offset
(
const
arch_env_t
*
env
,
ir_node
*
irn
,
int
bias
);
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
);
extern
void
arch_set_frame_entity
(
const
arch_env_t
*
env
,
ir_node
*
irn
,
ir_entity
*
ent
);
...
...
Write
Preview
Supports
Markdown
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