d: Move private functions out of ExprVisitor into local statics
authorIain Buclaw <ibuclaw@gdcproject.org>
Thu, 16 Jul 2020 12:02:24 +0000 (14:02 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 30 Jul 2020 16:00:35 +0000 (18:00 +0200)
commitdc60d67674dd809fd5d57390e1360436351ae7ae
tree8f2f595e9b7fdc51a5ecf8efa6a7f9791adfb5cf
parent561a19c3011f7bde3a41f2a27ea979118e3a2dff
d: Move private functions out of ExprVisitor into local statics

None of these functions need access to the context pointer of the
visitor class, so have been made free standing.

gcc/d/ChangeLog:

* expr.cc (needs_postblit): Move out of ExprVisitor as a static
function.  Update all callers.
(needs_dtor): Likewise.
(lvalue_p): Likewise.
(binary_op): Likewise.
(binop_assignment): Likewise.
gcc/d/expr.cc