fixed comment: get_call_abi() get the call type, NOT the method type of the called...
[libfirm] / ir / be / becopyheur3.c
index a52ad24..eb0e0f4 100644 (file)
@@ -28,6 +28,8 @@
 #include "config.h"
 #endif
 
+#ifdef WITH_JVM
+
 #include <libcore/lc_opts.h>
 #include <libcore/lc_opts_enum.h>
 
@@ -148,8 +150,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) {
@@ -237,3 +239,5 @@ int co_solve_heuristic_java(copy_opt_t *co)
        bitset_free(nodes);
        return 0;
 }
+
+#endif