X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespilloptions.c;h=f6cfb73166e1940ae82bbc046039f33afd0eb7ef;hb=330af274dc3552a170f6ea14605a3d6cfb977373;hp=32dc6576f87e46a971a5f428e74e6d57de2a23e3;hpb=049e7746fb729a28e90e69f02899c76c7b98b275;p=libfirm diff --git a/ir/be/bespilloptions.c b/ir/be/bespilloptions.c index 32dc6576f..f6cfb7316 100644 --- a/ir/be/bespilloptions.c +++ b/ir/be/bespilloptions.c @@ -24,9 +24,7 @@ * @date 29.09.2005 * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "irtools.h" @@ -47,19 +45,19 @@ static const lc_opt_table_entry_t be_spill_options[] = { }; static be_module_list_entry_t *spillers = NULL; -static be_spiller_t *selected_spiller = NULL; +static const be_spiller_t *selected_spiller = NULL; void be_register_spiller(const char *name, be_spiller_t *spiller) { - if(selected_spiller == NULL) + if (selected_spiller == NULL) selected_spiller = spiller; be_add_module_to_list(&spillers, name, spiller); } -void be_do_spill(be_irg_t *birg, const arch_register_class_t* cls) +void be_do_spill(be_irg_t *birg, const arch_register_class_t *cls) { assert(selected_spiller != NULL); - if(selected_spiller != NULL) { + if (selected_spiller != NULL) { selected_spiller->spill(birg, cls); } }