analyzer: split out struct bit_range from class concrete_binding
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 8 Jun 2021 18:43:48 +0000 (14:43 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 8 Jun 2021 18:43:48 +0000 (14:43 -0400)
commit6b400aef1bdc84bbdf5011caff3fe5f82c68d253
tree70ec581cd36da8f5ba13be52f27b43cc64d7b42c
parent8c5a5404cb68e5e39e296849944019b93a591646
analyzer: split out struct bit_range from class concrete_binding

gcc/analyzer/ChangeLog:
* store.cc (concrete_binding::dump_to_pp): Move bulk of
implementation to...
(bit_range::dump_to_pp): ...this new function.
(bit_range::cmp): New.
(concrete_binding::overlaps_p): Update for use of bit_range.
(concrete_binding::cmp_ptr_ptr): Likewise.
* store.h (struct bit_range): New.
(class concrete_binding): Replace fields m_start_bit_offset and
m_size_in_bits with new field m_bit_range.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/store.cc
gcc/analyzer/store.h