summaryrefslogtreecommitdiff
path: root/gcc/tree-ssanames.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2019-11-05 15:39:11 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2019-11-05 15:39:11 +0000
commit028d81b1599c365d8c60222ec5631a8f111d8574 (patch)
tree2593124dc042ecb237d2105645807c03717b03b9 /gcc/tree-ssanames.c
parent3619076a631eac18c0484acf6dff3e5e94b8e251 (diff)
The base class for ranges is currently value_range_base, which is rather long and cumbersome.
The base class for ranges is currently value_range_base, which is rather long and cumbersome. It also occurs more often than the derived class of value_range. To avoid confusion, and save typing, this patch does a global rename from value_range to value_range_equiv, and from value_range_base to value_range. This way, the base class is simply value_range, and the derived class is value_range_equiv which explicitly states what it does. From-SVN: r277847
Diffstat (limited to 'gcc/tree-ssanames.c')
-rw-r--r--gcc/tree-ssanames.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssanames.c b/gcc/tree-ssanames.c
index f7b638dba11..ac92ae4e0e3 100644
--- a/gcc/tree-ssanames.c
+++ b/gcc/tree-ssanames.c
@@ -408,7 +408,7 @@ set_range_info (tree name, enum value_range_kind range_type,
/* Store range information for NAME from a value_range. */
void
-set_range_info (tree name, const value_range_base &vr)
+set_range_info (tree name, const value_range &vr)
{
wide_int min = wi::to_wide (vr.min ());
wide_int max = wi::to_wide (vr.max ());
@@ -441,7 +441,7 @@ get_range_info (const_tree name, wide_int *min, wide_int *max)
in a value_range VR. Returns the value_range_kind. */
enum value_range_kind
-get_range_info (const_tree name, value_range_base &vr)
+get_range_info (const_tree name, value_range &vr)
{
tree min, max;
wide_int wmin, wmax;