diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2023-06-10 16:56:06 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2023-06-12 10:51:03 -0400 |
commit | 1c0aae69a760c7ec3ee436d4c36bb01be6bc0951 (patch) | |
tree | e2add4b8dc1e8e3eb238777eccaaa091679a0586 /gcc/range-op.cc | |
parent | 2eb50117ca26f665ce22085d620ff474622971cc (diff) | |
download | gcc-1c0aae69a760c7ec3ee436d4c36bb01be6bc0951.zip gcc-1c0aae69a760c7ec3ee436d4c36bb01be6bc0951.tar.gz gcc-1c0aae69a760c7ec3ee436d4c36bb01be6bc0951.tar.bz2 |
Switch from unified table to range_op_table. There can be only one.
Now that there is only a single range_op_table, make the base table the
only table.
* range-op.cc (unified_table): Delete.
(range_op_table operator_table): Instantiate.
(range_op_table::range_op_table): Rename from unified_table.
(range_op_handler::range_op_handler): Use range_op_table.
* range-op.h (range_op_table::operator []): Inline.
(range_op_table::set): Inline.
Diffstat (limited to 'gcc/range-op.cc')
-rw-r--r-- | gcc/range-op.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gcc/range-op.cc b/gcc/range-op.cc index 3e8b122..382f5d5 100644 --- a/gcc/range-op.cc +++ b/gcc/range-op.cc @@ -49,13 +49,6 @@ along with GCC; see the file COPYING3. If not see #include "tree-ssa-ccp.h" #include "range-op-mixed.h" -// Instantiate a range_op_table for unified operations. -class unified_table : public range_op_table -{ - public: - unified_table (); -} unified_tree_table; - // Instantiate the operators which apply to multiple types here. operator_equal op_equal; @@ -80,9 +73,12 @@ operator_bitwise_or op_bitwise_or; operator_min op_min; operator_max op_max; +// Instantaite a range operator table. +range_op_table operator_table; + // Invoke the initialization routines for each class of range. -unified_table::unified_table () +range_op_table::range_op_table () { initialize_integral_ops (); initialize_pointer_ops (); @@ -134,7 +130,7 @@ range_op_handler::range_op_handler () range_op_handler::range_op_handler (tree_code code) { - m_operator = unified_tree_table[code]; + m_operator = operator_table[code]; } // Create a dispatch pattern for value range discriminators LHS, OP1, and OP2. |