summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beschedtrivial.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-10-11 20:11:43 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2008-10-11 20:11:43 +0200
commit7c767284b8f554996788212eb30709bb949710c4 (patch)
tree38800b7f0d1257c0b974482144418e80336cc39f /ir/be/beschedtrivial.c
parent0dad4e224fe6d1b4cdc1f2e12cda4a004fbd9023 (diff)
Remove the unused parameter const arch_env_t *env from arch_irn_classify() and arch_irn_class_is().
[r22702]
Diffstat (limited to 'ir/be/beschedtrivial.c')
-rw-r--r--ir/be/beschedtrivial.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/ir/be/beschedtrivial.c b/ir/be/beschedtrivial.c
index 8f1f4bc..ff6973f 100644
--- a/ir/be/beschedtrivial.c
+++ b/ir/be/beschedtrivial.c
@@ -45,14 +45,14 @@
static ir_node *trivial_select(void *block_env, ir_nodeset_t *ready_set,
ir_nodeset_t *live_set)
{
- const arch_env_t *arch_env = block_env;
- ir_node *irn = NULL;
- ir_nodeset_iterator_t iter;
- (void) live_set;
+ ir_node *irn;
+ ir_nodeset_iterator_t iter;
+ (void)block_env;
+ (void)live_set;
/* assure that branches and constants are executed last */
foreach_ir_nodeset(ready_set, irn, iter) {
- if (! arch_irn_class_is(arch_env, irn, branch)) {
+ if (!arch_irn_class_is(irn, branch)) {
return irn;
}
}
@@ -66,14 +66,16 @@ static ir_node *trivial_select(void *block_env, ir_nodeset_t *ready_set,
static void *trivial_init_graph(const list_sched_selector_t *vtab, const be_irg_t *birg)
{
- (void) vtab;
- return (void *) be_get_birg_arch_env(birg);
+ (void)vtab;
+ (void)birg;
+ return NULL;
}
static void *trivial_init_block(void *graph_env, ir_node *block)
{
- (void) block;
- return graph_env;
+ (void)graph_env;
+ (void)block;
+ return NULL;
}
const list_sched_selector_t trivial_selector = {