aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@gcc.gnu.org>2019-08-21 19:27:35 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2019-08-21 19:27:35 +0000
commitcbd37ed2b99cf71c0fa353a3220e0c0cae3e9555 (patch)
treec09e84261e3aa79a8d6c80066bcf769886dd0a05
parent92e334b2b9632d65c887851f0e9f310665dbf43e (diff)
downloadgcc-cbd37ed2b99cf71c0fa353a3220e0c0cae3e9555.zip
gcc-cbd37ed2b99cf71c0fa353a3220e0c0cae3e9555.tar.gz
gcc-cbd37ed2b99cf71c0fa353a3220e0c0cae3e9555.tar.bz2
Make range_operator::wi_fold protected.
From-SVN: r274809
-rw-r--r--gcc/range-op.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/range-op.h b/gcc/range-op.h
index fb950c4..cc3ab73 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);