diff options
Diffstat (limited to 'gcc/analyzer/store.h')
-rw-r--r-- | gcc/analyzer/store.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/analyzer/store.h b/gcc/analyzer/store.h index 7ded650..af6cc7e 100644 --- a/gcc/analyzer/store.h +++ b/gcc/analyzer/store.h @@ -350,6 +350,15 @@ struct byte_range m_size_in_bytes * BITS_PER_UNIT); } + bit_offset_t get_start_bit_offset () const + { + return m_start_byte_offset * BITS_PER_UNIT; + } + bit_offset_t get_next_bit_offset () const + { + return get_next_byte_offset () * BITS_PER_UNIT; + } + static int cmp (const byte_range &br1, const byte_range &br2); byte_offset_t m_start_byte_offset; |