FreeBSD/contrib/gcc/cp/cp-gimplify.c
/* Genericize a SWITCH_STMT by turning it into a SWITCH_EXPR.  */
Genericize a SWITCH_STMT by turning it into a SWITCH_EXPR.
Genericize a SWITCH_STMT by turning it into a SWITCH_EXPR .
static void
gimplify_switch_stmt (tree *stmt_p)
{
  tree stmt = *stmt_p;
  tree break_block, body;
  location_t stmt_locus = input_location;
  break_block = begin_bc_block (bc_break);
  body = SWITCH_STMT_BODY (stmt);
  if (!body)
    body = build_empty_stmt ();
  *stmt_p = build3 (SWITCH_EXPR, SWITCH_STMT_TYPE (stmt),
		    SWITCH_STMT_COND (stmt), body, NULL_TREE);
  SET_EXPR_LOCATION (*stmt_p, stmt_locus);
  gimplify_stmt (stmt_p);
  *stmt_p = finish_bc_block (bc_break, break_block, *stmt_p);
}
static void gimplify_switch_stmt ( tree * stmt_p ) { tree stmt = * stmt_p ; tree break_block , body ; location_t stmt_locus = input_location ; break_block = begin_bc_block ( bc_break ) ; body = SWITCH_STMT_BODY ( stmt ) ; if ( ! body ) body = build_empty_stmt ( ) ; * stmt_p = build3 ( SWITCH_EXPR , SWITCH_STMT_TYPE ( stmt ) , SWITCH_STMT_COND ( stmt ) , body , NULL_TREE ) ; SET_EXPR_LOCATION ( * stmt_p , stmt_locus ) ; gimplify_stmt ( stmt_p ) ; * stmt_p = finish_bc_block ( bc_break , break_block , * stmt_p ) ; }
Genericize a SWITCH_STMT by turning it into a SWITCH_EXPR.
Genericize a SWITCH_STMT by turning it into a SWITCH_EXPR .