X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fbe%2Fbecopyilp.c;h=3e2469e2ca4e8010c57948cda09ca89180056007;hb=ca1b1615fbe23a4d5cf72e7be5d2ee831615cbc2;hp=1964a438684fea1cfd290f9f28625a0f12d6403f;hpb=a392feca0ee56443fdff11ce9c378ed4bdf654db;p=libfirm diff --git a/ir/be/becopyilp.c b/ir/be/becopyilp.c index 1964a4386..3e2469e2c 100644 --- a/ir/be/becopyilp.c +++ b/ir/be/becopyilp.c @@ -8,6 +8,12 @@ * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* HAVE_CONFIG_H */ + +#ifdef WITH_ILP + #include "becopyilp_t.h" #include "beifg_t.h" @@ -23,7 +29,7 @@ size_red_t *new_size_red(copy_opt_t *co) { - size_red_t *res = malloc(sizeof(*res)); + size_red_t *res = xmalloc(sizeof(*res)); res->co = co; res->all_removed = pset_new_ptr_default(); @@ -137,7 +143,7 @@ void free_size_red(size_red_t *sr) { #include ilp_env_t *new_ilp_env(copy_opt_t *co, ilp_callback build, ilp_callback apply, void *env) { - ilp_env_t *res = malloc(sizeof(*res)); + ilp_env_t *res = xmalloc(sizeof(*res)); assert(res); res->co = co; @@ -181,3 +187,10 @@ void free_ilp_env(ilp_env_t *ienv) { free_lpp(ienv->lp); free(ienv); } + +#else /* WITH_ILP */ + +static void only_that_you_can_compile_without_WITH_ILP_defined(void) { +} + +#endif /* WITH_ILP */