refactoring: split stackframe handling completely from beabi struct
[libfirm] / ir / be / bechordal_main.c
index 18f3da9..7897c01 100644 (file)
@@ -71,6 +71,7 @@
 #include "bera.h"
 #include "beirg.h"
 #include "bedump_minir.h"
+#include "bestack.h"
 
 #include "bespillslots.h"
 #include "bespill.h"
@@ -92,7 +93,7 @@ static be_ra_chordal_opts_t options = {
        ""
 };
 
-typedef struct _post_spill_env_t {
+typedef struct post_spill_env_t {
        be_chordal_env_t            cenv;
        ir_graph                    *irg;
        const arch_register_class_t *cls;
@@ -292,7 +293,7 @@ static void post_spill(post_spill_env_t *pse, int iteration)
                be_timer_push(T_RA_SPILL_APPLY);
                check_for_memory_operands(irg);
                if (iteration == 0) {
-                       be_abi_fix_stack_nodes(be_get_irg_abi(irg));
+                       be_abi_fix_stack_nodes(irg);
                }
                be_timer_pop(T_RA_SPILL_APPLY);
 
@@ -476,7 +477,7 @@ static void be_ra_chordal_main(ir_graph *irg)
                }
 
                be_timer_push(T_RA_SPILL);
-               arch_code_generator_spill(be_get_irg_cg(irg), be_birg_from_irg(irg));
+               arch_code_generator_spill(be_get_irg_cg(irg), irg);
                be_timer_pop(T_RA_SPILL);
                dump(BE_CH_DUMP_SPILL, irg, NULL, "spill");