c++: remove NON_DEPENDENT_EXPR, part 2
This follow-up patch removes build_non_dependent_expr (and
make_args_non_dependent) and calls thereof, no functional change.
gcc/cp/ChangeLog:
* call.cc (build_new_method_call): Remove calls to
build_non_dependent_expr and/or make_args_non_dependent.
* coroutines.cc (finish_co_return_stmt): Likewise.
* cp-tree.h (build_non_dependent_expr): Remove.
(make_args_non_dependent): Remove.
* decl2.cc (grok_array_decl): Remove calls to
build_non_dependent_expr and/or make_args_non_dependent.
(build_offset_ref_call_from_tree): Likewise.
* init.cc (build_new): Likewise.
* pt.cc (make_args_non_dependent): Remove.
(test_build_non_dependent_expr): Remove.
(cp_pt_cc_tests): Adjust.
* semantics.cc (finish_expr_stmt): Remove calls to
build_non_dependent_expr and/or make_args_non_dependent.
(finish_for_expr): Likewise.
(finish_call_expr): Likewise.
(finish_omp_atomic): Likewise.
* typeck.cc (finish_class_member_access_expr): Likewise.
(build_x_indirect_ref): Likewise.
(build_x_binary_op): Likewise.
(build_x_array_ref): Likewise.
(build_x_vec_perm_expr): Likewise.
(build_x_shufflevector): Likewise.
(build_x_unary_op): Likewise.
(cp_build_addressof): Likewise.
(build_x_conditional_expr): Likewise.
(build_x_compound_expr): Likewise.
(build_static_cast): Likewise.
(build_x_modify_expr): Likewise.
(check_return_expr): Likewise.
* typeck2.cc (build_x_arrow): Likewise.
Reviewed-by:
Jason Merrill <jason@redhat.com>
Showing
- gcc/cp/call.cc 1 addition, 6 deletionsgcc/cp/call.cc
- gcc/cp/coroutines.cc 0 additions, 3 deletionsgcc/cp/coroutines.cc
- gcc/cp/cp-tree.h 0 additions, 2 deletionsgcc/cp/cp-tree.h
- gcc/cp/decl2.cc 3 additions, 14 deletionsgcc/cp/decl2.cc
- gcc/cp/init.cc 0 additions, 5 deletionsgcc/cp/init.cc
- gcc/cp/pt.cc 0 additions, 46 deletionsgcc/cp/pt.cc
- gcc/cp/semantics.cc 2 additions, 23 deletionsgcc/cp/semantics.cc
- gcc/cp/typeck.cc 0 additions, 31 deletionsgcc/cp/typeck.cc
- gcc/cp/typeck2.cc 0 additions, 1 deletiongcc/cp/typeck2.cc
Loading
Please register or sign in to comment