From: Matthias Braun Date: Fri, 26 Feb 2010 13:56:32 +0000 (+0000) Subject: new_Block doesn't set current_block anymore; remove some unused and strange functions X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b3c999c59e9cc7773e7bdff943315cd940beaf80;p=cparser new_Block doesn't set current_block anymore; remove some unused and strange functions [r27226] --- diff --git a/ast2firm.c b/ast2firm.c index 17620fd..4156376 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -2059,7 +2059,8 @@ static ir_node *call_expression_to_firm(const call_expression_t *const call) * nodes into a new and unreachable block. */ keep_alive(node); keep_alive(get_cur_block()); - new_Block(0, NULL); + ir_node *block = new_Block(0, NULL); + set_cur_block(block); } return result; @@ -2616,7 +2617,8 @@ static ir_node *produce_condition_result(const expression_t *expression, mature_immBlock(zero_block); ir_node *in_cf[2] = { jmp_one, jmp_zero }; - new_Block(2, in_cf); + ir_node *block = new_Block(2, in_cf); + set_cur_block(block); ir_node *in[2] = { one, zero }; ir_node *val = new_d_Phi(dbgi, 2, in, mode); @@ -3167,7 +3169,8 @@ static ir_node *conditional_to_firm(const conditional_expression_t *expression) /* create the common block */ ir_node *in_cf[2] = { true_jmp, false_jmp }; - new_Block(2, in_cf); + ir_node *block = new_Block(2, in_cf); + set_cur_block(block); /* TODO improve static semantics, so either both or no values are NULL */ if (true_val == NULL || false_val == NULL)