diff options
author | David Malcolm <dmalcolm@redhat.com> | 2022-06-27 17:00:34 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2022-06-27 17:00:34 -0400 |
commit | 26f77c4d19b827f3a2a8a9323df8e182e1389cb9 (patch) | |
tree | 34c4715289d2b7bd46c08eca7265916bfc9304e6 /gcc/lto | |
parent | 0a8333ade9a03fc203055e69c05008d9733e9e9d (diff) | |
download | gcc-26f77c4d19b827f3a2a8a9323df8e182e1389cb9.zip gcc-26f77c4d19b827f3a2a8a9323df8e182e1389cb9.tar.gz gcc-26f77c4d19b827f3a2a8a9323df8e182e1389cb9.tar.bz2 |
Add 'final' and 'override' in various places
gcc/cp/ChangeLog:
* cxx-pretty-print.h: Add "final" and "override" to various vfunc
implementations, removing redundant "virtual" as appropriate.
* module.cc: Likewise.
gcc/ChangeLog:
* genmatch.cc: Add "final" and "override" to various vfunc
implementations, removing redundant "virtual" as appropriate.
* gensupport.cc: Likewise.
* gimple-range-cache.h: Likewise.
* ipa-icf-gimple.h: Likewise.
* ipa-icf.h: Likewise.
* read-md.h: Likewise.
* read-rtl-function.cc: Likewise.
* tree-ssa-loop-ch.cc: Likewise.
* tree-ssa-sccvn.cc: Likewise.
gcc/lto/ChangeLog:
* lto-dump.cc: Add "final" and "override" to various vfunc
implementations, removing redundant "virtual" as appropriate.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/lto-dump.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/lto/lto-dump.cc b/gcc/lto/lto-dump.cc index 1fb3fb8..f88486b 100644 --- a/gcc/lto/lto-dump.cc +++ b/gcc/lto/lto-dump.cc @@ -80,7 +80,7 @@ public: virtual ~variable_entry () {} - virtual size_t get_size () const + size_t get_size () const final override { varpool_node *vnode = dyn_cast<varpool_node *> (node); if (DECL_SIZE (vnode->decl) && tree_fits_shwi_p (DECL_SIZE (vnode->decl))) @@ -88,7 +88,7 @@ public: return 0; } - virtual void dump () + void dump () final override { symbol_entry :: dump (); varpool_node *vnode = dyn_cast<varpool_node *> (node); @@ -111,13 +111,13 @@ public: virtual ~function_entry () {} - virtual void dump () + void dump () final override { symbol_entry :: dump (); printf ("\n"); } - virtual size_t get_size () const + size_t get_size () const final override { cgraph_node *cnode = dyn_cast<cgraph_node *> (node); gcc_assert (cnode); |