analyzer: move svalue and region decls to their own header files
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 29 Oct 2020 00:09:04 +0000 (20:09 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 29 Oct 2020 00:09:04 +0000 (20:09 -0400)
commite9751143e237b507a81234a573a200ea45e7111a
tree67c5ae2a3112bd02c8b4aa98f8287251481a3e3a
parent0a36f5f21cd9dcaaf99e78d2ec995d6cb2918274
analyzer: move svalue and region decls to their own header files

gcc/ChangeLog:
* Makefile.in (ANALYZER_OBJS): Add analyzer/complexity.o.

gcc/analyzer/ChangeLog:
* analyzer.h (class state_machine): New forward decl.
(class logger): Likewise.
(class visitor): Likewise.
* complexity.cc: New file, taken from svalue.cc.
* complexity.h: New file, taken from region-model.h.
* region-model.h: Include "analyzer/svalue.h" and
"analyzer/region.h".  Move struct complexity to complexity.h.
Move svalue, its subclasses and supporting decls to svalue.h.
Move region, its subclasses and supporting decls to region.h.
* region.cc: Include "analyzer/region.h".
(symbolic_region::symbolic_region): Move here from region-model.h.
* region.h: New file, based on material from region-model.h.
* svalue.cc: Include "analyzer/svalue.h".
(complexity::complexity): Move to complexity.cc.
(complexity::from_pair): Likewise.
* svalue.h: New file, based on material from region-model.h.
gcc/Makefile.in
gcc/analyzer/analyzer.h
gcc/analyzer/complexity.cc [new file with mode: 0644]
gcc/analyzer/complexity.h [new file with mode: 0644]
gcc/analyzer/region-model.h
gcc/analyzer/region.cc
gcc/analyzer/region.h [new file with mode: 0644]
gcc/analyzer/svalue.cc
gcc/analyzer/svalue.h [new file with mode: 0644]