analyzer: introduce byte_range and use to simplify dumps
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 28 Jun 2021 23:18:06 +0000 (19:18 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Mon, 28 Jun 2021 23:18:06 +0000 (19:18 -0400)
commit7c6b354b92b38f31cd2399fbdbc9d6f837881480
tree7341fcbb487ebc635454396d8b06bc145a6b378a
parent40c64c9ea565230817f08b5e66a30a1c94ec880c
analyzer: introduce byte_range and use to simplify dumps

gcc/analyzer/ChangeLog:
* analyzer.h (byte_offset_t): New typedef.
* store.cc (bit_range::dump_to_pp): Dump as a byte range if
possible.
(bit_range::as_byte_range): New.
(byte_range::dump_to_pp): New.
* store.h (class byte_range): New forward decl.
(struct bit_range): Add comment.
(bit_range::as_byte_range): New decl.
(struct byte_range): New.

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