X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgraph.c;h=d469694365f8e256e23b65e9b50d20a665c99904;hb=357886575cb0becb5bd9be376fde49b57edd5385;hp=c6d7c414054bd7684e7790b959e6700ba12c6a69;hpb=eb47aca33f2f8c414409f3695e73277b47442334;p=libfirm diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index c6d7c4140..d46969436 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -216,7 +216,6 @@ ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc) start_block = new_r_Block_noopt(res, 0, NULL); set_irg_start_block(res, start_block); - set_irg_bad (res, new_r_Bad(res)); set_irg_no_mem (res, new_r_NoMem(res)); start = new_r_Start(res); set_irg_start (res, start); @@ -260,7 +259,6 @@ ir_graph *new_ir_graph(ir_entity *ent, int n_loc) ir_graph *new_const_code_irg(void) { ir_graph *res = alloc_graph(); - ir_node *bad; ir_node *body_block; ir_node *end; ir_node *end_block; @@ -303,8 +301,6 @@ ir_graph *new_const_code_irg(void) /* -- The start block -- */ start_block = new_r_Block_noopt(res, 0, NULL); set_irg_start_block(res, start_block); - bad = new_r_Bad(res); - set_irg_bad(res, bad); no_mem = new_r_NoMem(res); set_irg_no_mem(res, no_mem); start = new_r_Start(res); @@ -323,7 +319,6 @@ ir_graph *new_const_code_irg(void) set_Block_block_visited(body_block, -1); set_Block_block_visited(start_block, -1); set_irn_visited(start_block, -1); - set_irn_visited(bad, -1); set_irn_visited(no_mem, -1); return res; @@ -420,7 +415,6 @@ ir_graph *create_irg_copy(ir_graph *irg) /* -- The start block -- */ set_irg_start_block(res, get_new_node(get_irg_start_block(irg))); - set_irg_bad (res, get_new_node(get_irg_bad(irg))); set_irg_no_mem (res, get_new_node(get_irg_no_mem(irg))); set_irg_start (res, get_new_node(get_irg_start(irg))); @@ -582,16 +576,6 @@ void (set_irg_args)(ir_graph *irg, ir_node *node) _set_irg_args(irg, node); } -ir_node *(get_irg_bad)(const ir_graph *irg) -{ - return _get_irg_bad(irg); -} - -void (set_irg_bad)(ir_graph *irg, ir_node *node) -{ - _set_irg_bad(irg, node); -} - ir_node *(get_irg_no_mem)(const ir_graph *irg) { return _get_irg_no_mem(irg);