]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:20:16 +0000 (13:20 -0300)
commitf1e8a2d8ba017163213f25ac2caacc112e372530
treef6d34b47e7d88d15320d6791767629342c0b8e55
parent4dcee15414f38ccdb3882cdbe30ef41566d7442f
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