diff options
author | David Malcolm <dmalcolm@redhat.com> | 2020-09-15 14:25:52 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2020-09-16 19:00:41 -0400 |
commit | b9b5fc0c2175b34131d9fd0805b1b307f754f4f0 (patch) | |
tree | 70e496d98dccdbfea0cccc8b6ae281e869dc28f8 /gcc/analyzer/program-point.h | |
parent | 6dd96e24ea3cb9919fedd4da35fbfd36ed98b0ea (diff) | |
download | gcc-b9b5fc0c2175b34131d9fd0805b1b307f754f4f0.zip gcc-b9b5fc0c2175b34131d9fd0805b1b307f754f4f0.tar.gz gcc-b9b5fc0c2175b34131d9fd0805b1b307f754f4f0.tar.bz2 |
analyzer: add program_point::get_next
Avoid some future copy-and-paste by introducing a function.
gcc/analyzer/ChangeLog:
* engine.cc
(exploded_graph::process_node) <case PK_BEFORE_SUPERNODE>:
Simplify by using program_point::get_next.
* program-point.cc (program_point::get_next): New.
* program-point.h (program_point::get_next): New decl.
Diffstat (limited to 'gcc/analyzer/program-point.h')
-rw-r--r-- | gcc/analyzer/program-point.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/analyzer/program-point.h b/gcc/analyzer/program-point.h index cb11478..97fd0a5 100644 --- a/gcc/analyzer/program-point.h +++ b/gcc/analyzer/program-point.h @@ -294,6 +294,8 @@ public: /* For before_stmt, go to next stmt. */ void next_stmt () { m_function_point.next_stmt (); } + program_point get_next () const; + private: function_point m_function_point; call_string m_call_string; |