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
85ff0214
Commit
85ff0214
authored
Oct 11, 2008
by
Christoph Mallon
Browse files
Remove the unused parameter const arch_env_t *env from arch_get_sp_bias().
[r22680]
parent
2992232e
Changes
3
Show whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
85ff0214
...
...
@@ -2386,7 +2386,6 @@ void be_abi_fix_stack_nodes(be_abi_irg_t *env)
*/
static
int
process_stack_bias
(
be_abi_irg_t
*
env
,
ir_node
*
bl
,
int
real_bias
)
{
const
arch_env_t
*
arch_env
=
env
->
birg
->
main_env
->
arch_env
;
int
omit_fp
=
env
->
call
->
flags
.
bits
.
try_omit_fp
;
ir_node
*
irn
;
int
wanted_bias
=
real_bias
;
...
...
@@ -2412,7 +2411,7 @@ static int process_stack_bias(be_abi_irg_t *env, ir_node *bl, int real_bias)
* If the node modifies the stack pointer by a constant offset,
* record that in the bias.
*/
ofs
=
arch_get_sp_bias
(
arch_env
,
irn
);
ofs
=
arch_get_sp_bias
(
irn
);
if
(
be_is_IncSP
(
irn
))
{
/* fill in real stack frame size */
...
...
ir/be/bearch.c
View file @
85ff0214
...
...
@@ -108,10 +108,9 @@ void arch_set_frame_entity(ir_node *irn, ir_entity *ent)
ops
->
set_frame_entity
(
irn
,
ent
);
}
int
arch_get_sp_bias
(
const
arch_env_t
*
env
,
ir_node
*
irn
)
int
arch_get_sp_bias
(
ir_node
*
irn
)
{
const
arch_irn_ops_t
*
ops
=
get_irn_ops
(
irn
);
(
void
)
env
;
// TODO remove parameter
return
ops
->
get_sp_bias
(
irn
);
}
...
...
ir/be/bearch.h
View file @
85ff0214
...
...
@@ -137,7 +137,7 @@ void arch_set_frame_offset(ir_node *irn, int bias);
ir_entity
*
arch_get_frame_entity
(
const
ir_node
*
irn
);
void
arch_set_frame_entity
(
ir_node
*
irn
,
ir_entity
*
ent
);
extern
int
arch_get_sp_bias
(
const
arch_env_t
*
env
,
ir_node
*
irn
);
int
arch_get_sp_bias
(
ir_node
*
irn
);
extern
int
arch_get_op_estimated_cost
(
const
arch_env_t
*
env
,
const
ir_node
*
irn
);
extern
arch_inverse_t
*
arch_get_inverse
(
const
arch_env_t
*
env
,
const
ir_node
*
irn
,
int
i
,
arch_inverse_t
*
inverse
,
struct
obstack
*
obstack
);
...
...
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