]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make range_operator::wi_fold protected.
authorAldy Hernandez <aldyh@gcc.gnu.org>
Wed, 21 Aug 2019 19:27:35 +0000 (19:27 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Wed, 21 Aug 2019 19:27:35 +0000 (19:27 +0000)
From-SVN: r274809

gcc/range-op.h

index fb950c4500bb45d5c3a2bd35ff1d33e1a9b356b5..cc3ab739c8b49cbcef9d107c2241788d3335bd9d 100644 (file)
@@ -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);