summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2008-05-23 21:04:09 +0200
committerMatthias Braun <matze@braunis.de>2008-05-23 21:04:09 +0200
commitcf9c1673146d1f45d46ceb77eccfaf10fedff25d (patch)
tree2774545fc07cb67046b6f0a36a050f1d7928dd86 /ir/be/bestat.c
parentc23b55879df97f49fc6f1e95651f9f28a980b620 (diff)
- Aus arch_isa_t wird arch_env_t sonst ändert sich nix...
[r19740]
Diffstat (limited to 'ir/be/bestat.c')
-rw-r--r--ir/be/bestat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ir/be/bestat.c b/ir/be/bestat.c
index 2b5a615..2c1fe6d 100644
--- a/ir/be/bestat.c
+++ b/ir/be/bestat.c
@@ -171,10 +171,10 @@ static void stat_reg_pressure_block(ir_node *block, void *data) {
const arch_env_t *arch_env = be_get_birg_arch_env(env->birg);
int i, n;
- n = arch_isa_get_n_reg_class(arch_env->isa);
+ n = arch_env_get_n_reg_class(arch_env);
for (i = 0; i < n; i++) {
const arch_register_class_t *cls
- = arch_isa_get_reg_class(arch_env->isa, i);
+ = arch_env_get_reg_class(arch_env, i);
check_reg_pressure_class(env, block, cls);
}
@@ -197,8 +197,7 @@ void be_do_stat_reg_pressure(be_irg_t *birg) {
#if 0
env.cls = NULL;
#else
- env.cls = arch_isa_get_reg_class(
- be_get_birg_arch_env(birg)->isa, 2);
+ env.cls = arch_env_get_reg_class(be_get_birg_arch_env(birg), 2);
#endif
/* Collect register pressure information for each block */