X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeifg_clique.c;h=c8864f84e274e3995e5a87eae0d5ec28d4c08bf2;hb=6082146d47925a3dbbc78da30ca0a89276457dce;hp=1a82faf6ef58eaf2bc3583fd41b5cc9ca8c64eb4;hpb=8428d50114020cce61e2fccae4e23244a99db918;p=libfirm diff --git a/ir/be/beifg_clique.c b/ir/be/beifg_clique.c index 1a82faf6e..c8864f84e 100644 --- a/ir/be/beifg_clique.c +++ b/ir/be/beifg_clique.c @@ -24,9 +24,7 @@ * @date 18.11.2005 * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include @@ -38,7 +36,7 @@ #include "irgwalk.h" #include "irbitset.h" -#include "bearch_t.h" +#include "bearch.h" #include "be_t.h" #include "beintlive_t.h" #include "beifg_t.h" @@ -81,7 +79,7 @@ static cli_head_t *get_new_cli_head(ifg_clique_t *ifg) if (ifg->cli_root == NULL) { - new_cli_head = obstack_alloc(&ifg->obst, sizeof(*new_cli_head)); + new_cli_head = OALLOC(&ifg->obst, cli_head_t); INIT_LIST_HEAD(&new_cli_head->list); ifg->cli_root = new_cli_head; } @@ -92,7 +90,7 @@ static cli_head_t *get_new_cli_head(ifg_clique_t *ifg) { cli_head = cli_head->next_cli_head; } - new_cli_head = obstack_alloc(&ifg->obst, sizeof(*new_cli_head)); + new_cli_head = OALLOC(&ifg->obst, cli_head_t); INIT_LIST_HEAD(&new_cli_head->list); cli_head->next_cli_head = new_cli_head; } @@ -109,7 +107,7 @@ static cli_element_t *get_new_cli_element(ifg_clique_t *ifg) { cli_element_t *cli_element; - cli_element = obstack_alloc(&ifg->obst, sizeof(*cli_element)); + cli_element = OALLOC(&ifg->obst, cli_element_t); INIT_LIST_HEAD(&cli_element->list); return cli_element; @@ -539,7 +537,7 @@ static const be_ifg_impl_t ifg_clique_impl = { be_ifg_t *be_ifg_clique_new(const be_chordal_env_t *env) { - ifg_clique_t *ifg = xmalloc(sizeof(*ifg)); + ifg_clique_t *ifg = XMALLOC(ifg_clique_t); ifg->impl = &ifg_clique_impl; ifg->env = env;