diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-07-23 16:19:59 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-07-23 17:39:15 +0200 |
commit | 435f90187eb4b6ddd66df692320057f303841ed6 (patch) | |
tree | 98c133bd1d818055ee423b730e3c947486a574d6 /gcc | |
parent | 50752b751fff56e7e2c74024bae659d5e9dea50f (diff) | |
download | gcc-435f90187eb4b6ddd66df692320057f303841ed6.zip gcc-435f90187eb4b6ddd66df692320057f303841ed6.tar.gz gcc-435f90187eb4b6ddd66df692320057f303841ed6.tar.bz2 |
Use range_query object in array bounds class.
Now that all dependencies of array_bounds_checker take a range_query, we
can sever the relationship with vr_values. Changing this will allow us
to use the array_bounds_checker with VRP, evrp, or the ranger.
Tested on x86-64 Linux.
gcc/ChangeLog:
* gimple-array-bounds.h (class array_bounds_checker): Change
ranges type to range_query.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/gimple-array-bounds.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gimple-array-bounds.h b/gcc/gimple-array-bounds.h index 1bfa2d4..fa64262 100644 --- a/gcc/gimple-array-bounds.h +++ b/gcc/gimple-array-bounds.h @@ -25,7 +25,7 @@ class array_bounds_checker friend class check_array_bounds_dom_walker; public: - array_bounds_checker (struct function *fun, class vr_values *v) + array_bounds_checker (struct function *fun, range_query *v) : fun (fun), ranges (v) { } void check (); @@ -37,7 +37,7 @@ private: const value_range *get_value_range (const_tree op); struct function *fun; - class vr_values *ranges; + range_query *ranges; }; #endif // GCC_GIMPLE_ARRAY_BOUNDS_H |