diff options
author | David Malcolm <dmalcolm@redhat.com> | 2020-03-17 14:43:43 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2020-03-18 09:56:49 -0400 |
commit | 7d9c107ab1eab331e7011513b11e26b78850d614 (patch) | |
tree | ec08870a947171b41c74f6b160abd2fc38fae36a /gcc/cse.c | |
parent | 0db2cd177020920e187ef47791d52cf689133a25 (diff) | |
download | gcc-7d9c107ab1eab331e7011513b11e26b78850d614.zip gcc-7d9c107ab1eab331e7011513b11e26b78850d614.tar.gz gcc-7d9c107ab1eab331e7011513b11e26b78850d614.tar.bz2 |
analyzer: introduce noop_region_model_context
tentative_region_model_context and test_region_model_context are both
forced to implement numerous pure virtual vfuncs of the abstract
region_model_context.
This patch adds a noop_region_model_context which provides empty
implementations of all of region_model_context's pure virtual functions,
and subclasses the above classes from that, rather than from
region_model_context directly.
gcc/analyzer/ChangeLog:
* region-model.h (class noop_region_model_context): New subclass
of region_model_context.
(class tentative_region_model_context): Inherit from
noop_region_model_context rather than from region_model_context;
drop redundant vfunc implementations.
(class test_region_model_context): Likewise.
Diffstat (limited to 'gcc/cse.c')
0 files changed, 0 insertions, 0 deletions