gccrs: const evaluator: Remove get_nth_callarg
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 17 Nov 2022 15:50:58 +0000 (16:50 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:53 +0000 (12:36 +0100)
commit064bbd0fe10437ab0b2b5a386c77c9e285dda760
tree10df15f4f52c340858f60ce443c03a004fa57993
parentb9203d82ad276b7eb6b7ecd675da92c1debbc485
gccrs: const evaluator: Remove get_nth_callarg

We only used one path of the C++ folder's get_nth_callarg function:
CALL_EXPR_ARG. Replace all calls to get_nth_callarg by macro calls to
CALL_EXPR_ARG

gcc/rust/ChangeLog:

* backend/rust-constexpr.cc (get_nth_callarg): Remove function.
(rs_bind_parameters_in_call): Use CALL_EXPR_ARG instead.
(potential_constant_expression_1): Likewise.
gcc/rust/backend/rust-constexpr.cc