aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-query.cc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2021-11-09 09:29:23 -0500
committerAndrew MacLeod <amacleod@redhat.com>2021-11-09 13:27:42 -0500
commit56af35de3d11960100996b96034dc9ccd7c75ca3 (patch)
treecf373ec2c094fa6ef46252f65481e55c65181d27 /gcc/value-query.cc
parent53080c5b4ce3742d20a0aa4643203215f20aadf6 (diff)
downloadgcc-56af35de3d11960100996b96034dc9ccd7c75ca3.zip
gcc-56af35de3d11960100996b96034dc9ccd7c75ca3.tar.gz
gcc-56af35de3d11960100996b96034dc9ccd7c75ca3.tar.bz2
Keep x_range_query NULL for global ranges.
Instead of x_range_query always pointing to an object, have it default to NULL and return a pointer to the global query in that case. * function.c (allocate_struct_function): Don't set x_range_query. * function.h (get_range_query): Move to value-query.h. * gimple-range.cc (enable_ranger): Check that query is currently NULL. (disable_ranger): Clear function current query field. * value-query.cc (get_global_range_query): Relocate to: * value-query.h (get_global_range_query): Here and inline. (get_range_query): Relocate here from function.h.
Diffstat (limited to 'gcc/value-query.cc')
-rw-r--r--gcc/value-query.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/value-query.cc b/gcc/value-query.cc
index 17ebd86..b7d9e66 100644
--- a/gcc/value-query.cc
+++ b/gcc/value-query.cc
@@ -435,14 +435,6 @@ gimple_range_global (tree name)
global_range_query global_ranges;
-// Like get_range_query, but for accessing global ranges.
-
-range_query *
-get_global_range_query ()
-{
- return &global_ranges;
-}
-
bool
global_range_query::range_of_expr (irange &r, tree expr, gimple *stmt)
{