From: Aldy Hernandez Date: Wed, 21 Aug 2019 19:27:35 +0000 (+0000) Subject: Make range_operator::wi_fold protected. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd37ed2b99cf71c0fa353a3220e0c0cae3e9555;p=thirdparty%2Fgcc.git Make range_operator::wi_fold protected. From-SVN: r274809 --- diff --git a/gcc/range-op.h b/gcc/range-op.h index fb950c4500bb..cc3ab739c8b4 100644 --- a/gcc/range-op.h +++ b/gcc/range-op.h @@ -46,10 +46,6 @@ along with GCC; see the file COPYING3. If not see class range_operator { public: - // Perform this operation on 2 sub ranges, return the result as a range of TYPE. - virtual irange wi_fold (tree type, const wide_int &lh_lb, const wide_int &lh_ub, - const wide_int &rh_lb, const wide_int &rh_ub) const; - // Set a range based on this operation between 2 operands. // TYPE is the expected type of the range. virtual irange fold_range (tree type, const irange &lh, @@ -66,7 +62,11 @@ public: const irange &op2) const; virtual bool op2_range (irange &r, tree type, const irange &lhs, const irange &op1) const; - +protected: + // Perform this operation on 2 sub ranges, return the result as a + // range of TYPE. + virtual irange wi_fold (tree type, const wide_int &lh_lb, const wide_int &lh_ub, + const wide_int &rh_lb, const wide_int &rh_ub) const; }; extern range_operator *range_op_handler(enum tree_code code, tree type);