remove morgan spiller, it's unused and the coming bespill changes won't support morga...
[libfirm] / ir / be / becopyheur3.c
index 8aeb44a..d8de8b2 100644 (file)
  */
 
 /**
- * More experiments on coalescing.
- * @author Sebastian Hack
- * @date   25.07.2006
+ * @file
+ * @brief       More experiments on coalescing with Java implementation.
+ * @author      Sebastian Hack
+ * @date        25.07.2006
+ * @version     $Id$
  */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -78,7 +80,7 @@ static lc_opt_enum_mask_var_t dump_var = {
 static const lc_opt_table_entry_t options[] = {
        LC_OPT_ENT_ENUM_MASK("dump", "dump ifg cloud",                              &dump_var),
        LC_OPT_ENT_INT      ("dbg",  "debug level for the Java coalescer",          &dbg_level),
-       { NULL }
+       LC_OPT_LAST
 };
 
 void be_init_copyheur3(void)
@@ -146,8 +148,8 @@ int co_solve_heuristic_java(copy_opt_t *co)
                }
        }
 
-       node_map     = malloc((get_irg_last_idx(co->irg) + 1) * sizeof(node_map[0]));
-       inv_node_map = malloc((get_irg_last_idx(co->irg) + 1) * sizeof(inv_node_map[0]));
+       node_map     = xmalloc((get_irg_last_idx(co->irg) + 1) * sizeof(node_map[0]));
+       inv_node_map = xmalloc((get_irg_last_idx(co->irg) + 1) * sizeof(inv_node_map[0]));
 
        curr_idx = 0;
        be_ifg_foreach_node(ifg, nodes_it, n) {