Emit * in all necessary places for EMIT_ALTERNATE_AM.
[libfirm] / ir / be / bemodule.c
index 156abd6..dda79d9 100644 (file)
@@ -63,7 +63,7 @@ void be_init_ra(void);
 void be_init_spillbelady(void);
 void be_init_spillbelady2(void);
 void be_init_spillbelady3(void);
-void be_init_spilllinearscan(void);
+//void be_init_spilllinearscan(void);
 void be_init_ssaconstr(void);
 void be_init_stabs(void);
 void be_init_ifg(void);
@@ -75,6 +75,7 @@ void be_init_state(void);
 void be_init_pbqp(void);
 
 void be_quit_copystat(void);
+void be_quit_pbqp(void);
 
 /**
  * Driver for module initialization.
@@ -111,7 +112,7 @@ void be_init_modules(void)
        be_init_spillbelady();
        be_init_spillbelady2();
        be_init_spillbelady3();
-       be_init_spilllinearscan();
+//     be_init_spilllinearscan();
        be_init_daemelspill();
        be_init_ssaconstr();
        be_init_state();
@@ -146,6 +147,9 @@ void be_init_modules(void)
 void be_quit_modules(void)
 {
        be_quit_copystat();
+#ifdef FIRM_GRGEN_BE
+       be_quit_pbqp();
+#endif
 }
 
 //---------------------------------------------------------------------------
@@ -246,9 +250,7 @@ int dump_opt_module_vals(char *buf, size_t buflen, const char *name,
 void be_add_module_to_list(be_module_list_entry_t **list_head, const char *name,
                            void *module)
 {
-       be_module_list_entry_t *entry;
-
-    entry       = xmalloc(sizeof(entry[0]));
+       be_module_list_entry_t *entry = XMALLOC(be_module_list_entry_t);
        entry->name = name;
        entry->data = module;
        entry->next = *list_head;
@@ -263,9 +265,7 @@ void be_add_module_list_opt(lc_opt_entry_t *grp, const char *name,
                             be_module_list_entry_t * const * list_head,
                             void **var)
 {
-       module_opt_data_t *moddata;
-
-       moddata            = xmalloc(sizeof(moddata[0]));
+       module_opt_data_t *moddata = XMALLOC(module_opt_data_t);
        moddata->var       = var;
        moddata->list_head = list_head;