projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revivie max_irg_visited
[libfirm]
/
ir
/
be
/
beifg_list.c
diff --git
a/ir/be/beifg_list.c
b/ir/be/beifg_list.c
index
cb44033
..
117815e
100644
(file)
--- a/
ir/be/beifg_list.c
+++ b/
ir/be/beifg_list.c
@@
-24,9
+24,7
@@
* @date 18.11.2005
* @version $Id$
*/
* @date 18.11.2005
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
#include <stdlib.h>
#include <stdlib.h>
@@
-36,7
+34,7
@@
#include "irgraph_t.h"
#include "irgwalk.h"
#include "irgraph_t.h"
#include "irgwalk.h"
-#include "bearch
_t
.h"
+#include "bearch.h"
#include "be_t.h"
#include "bera.h"
#include "beifg_t.h"
#include "be_t.h"
#include "bera.h"
#include "beifg_t.h"
@@
-85,7
+83,7
@@
static void create_node(ifg_list_t *ifg, ir_node *irn)
adj_head = ifg->adj_heads[irn->node_idx];
if (!adj_head)
{
adj_head = ifg->adj_heads[irn->node_idx];
if (!adj_head)
{
- adj_head =
obstack_alloc(&ifg->obst, sizeof(*adj_head)
);
+ adj_head =
OALLOC(&ifg->obst, adj_head_t
);
adj_head->irn = irn;
adj_head->first_adj_element = NULL;
adj_head->degree = 0;
adj_head->irn = irn;
adj_head->first_adj_element = NULL;
adj_head->degree = 0;
@@
-97,7
+95,7
@@
static adj_element_t *create_adj_element(ifg_list_t *ifg, ir_node *irn)
{
adj_element_t *element = NULL;
{
adj_element_t *element = NULL;
- element =
obstack_alloc(&ifg->obst, sizeof(*element)
);
+ element =
OALLOC(&ifg->obst, adj_element_t
);
element->next_adj_element = NULL;
element->neighbour = irn;
element->next_adj_element = NULL;
element->neighbour = irn;