X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyheur3.c;h=7d490e127c92aba0932494fe2c4b6553147f1a94;hb=afbbc0b1ccd684c4c24bfd43d0f994123245f39f;hp=d8de8b2af31a424df10d1fff5678fe5c9876217c;hpb=31636543e37dbecfb9b33664a1eb981d01f71ab8;p=libfirm diff --git a/ir/be/becopyheur3.c b/ir/be/becopyheur3.c index d8de8b2af..7d490e127 100644 --- a/ir/be/becopyheur3.c +++ b/ir/be/becopyheur3.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -28,8 +28,10 @@ #include "config.h" #endif -#include -#include +#ifdef WITH_JVM + +#include "lc_opts.h" +#include "lc_opts_enum.h" #include #include @@ -148,8 +150,8 @@ int co_solve_heuristic_java(copy_opt_t *co) } } - 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])); + node_map = XMALLOC(int, get_irg_last_idx(co->irg) + 1); + inv_node_map = XMALLOC(int, get_irg_last_idx(co->irg) + 1); 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