summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-10-11 19:25:04 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2008-10-11 19:25:04 +0200
commitd4bbab11371a9c68aa2a716eaa7589b82a28691e (patch)
tree60c192ec12f4f53e3b454003e73fd58a727decc7 /ir/be/beutil.c
parenta910bf06a9b445df581fe0c0d5a1abd4114a2398 (diff)
Remove the unused parameter const arch_env_t *env from arch_get_irn_register().
[r22697]
Diffstat (limited to 'ir/be/beutil.c')
-rw-r--r--ir/be/beutil.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/be/beutil.c b/ir/be/beutil.c
index 53b7287..bcabe6f 100644
--- a/ir/be/beutil.c
+++ b/ir/be/beutil.c
@@ -69,13 +69,12 @@ static void dump_allocated_block(ir_node *block, void *data)
const ir_node *irn;
struct dump_env *dump_env = data;
FILE *f = dump_env->f;
- arch_env_t *env = dump_env->env;
ir_fprintf(f, "node:{title:\"b%N\"\nlabel:\"", block);
sched_foreach(block, irn) {
const char *prefix = "";
- const arch_register_t *reg = arch_get_irn_register(env, irn);
+ const arch_register_t *reg = arch_get_irn_register(irn);
ir_fprintf(f, "\n");
if(reg)
@@ -88,7 +87,7 @@ static void dump_allocated_block(ir_node *block, void *data)
ir_node *op = get_irn_n(irn, i);
if (arch_is_register_operand(op, -1)) {
ir_fprintf(f, "%s%s", prefix,
- arch_register_get_name(arch_get_irn_register(env, op)));
+ arch_register_get_name(arch_get_irn_register(op)));
prefix = ", ";
}
}