From 028d81b1599c365d8c60222ec5631a8f111d8574 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Tue, 5 Nov 2019 15:39:11 +0000 Subject: 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 --- gcc/gimple-ssa-sprintf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/gimple-ssa-sprintf.c') diff --git a/gcc/gimple-ssa-sprintf.c b/gcc/gimple-ssa-sprintf.c index b548bbd..ef04b2a 100644 --- a/gcc/gimple-ssa-sprintf.c +++ b/gcc/gimple-ssa-sprintf.c @@ -1021,7 +1021,7 @@ get_int_range (tree arg, HOST_WIDE_INT *pmin, HOST_WIDE_INT *pmax, && TYPE_PRECISION (argtype) <= TYPE_PRECISION (type)) { /* Try to determine the range of values of the integer argument. */ - const value_range *vr + const value_range_equiv *vr = CONST_CAST (class vr_values *, vr_values)->get_value_range (arg); if (range_int_cst_p (vr)) @@ -1323,7 +1323,7 @@ format_integer (const directive &dir, tree arg, const vr_values *vr_values) { /* Try to determine the range of values of the integer argument (range information is not available for pointers). */ - const value_range *vr + const value_range_equiv *vr = CONST_CAST (class vr_values *, vr_values)->get_value_range (arg); if (range_int_cst_p (vr)) @@ -4087,7 +4087,7 @@ handle_printf_call (gimple_stmt_iterator *gsi, const vr_values *vr_values) /* Try to determine the range of values of the argument and use the greater of the two at level 1 and the smaller of them at level 2. */ - const value_range *vr + const value_range_equiv *vr = CONST_CAST (class vr_values *, vr_values)->get_value_range (size); if (range_int_cst_p (vr)) -- cgit v1.1