aboutsummaryrefslogtreecommitdiff
path: root/gcc/genmatch.cc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2022-06-27 17:00:34 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2022-06-27 17:00:34 -0400
commit26f77c4d19b827f3a2a8a9323df8e182e1389cb9 (patch)
tree34c4715289d2b7bd46c08eca7265916bfc9304e6 /gcc/genmatch.cc
parent0a8333ade9a03fc203055e69c05008d9733e9e9d (diff)
downloadgcc-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/genmatch.cc')
-rw-r--r--gcc/genmatch.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/genmatch.cc b/gcc/genmatch.cc
index 2b84b84..a0b22c5 100644
--- a/gcc/genmatch.cc
+++ b/gcc/genmatch.cc
@@ -723,9 +723,9 @@ public:
bool force_leaf;
/* If non-zero, the group for optional handling. */
unsigned char opt_grp;
- virtual void gen_transform (FILE *f, int, const char *, bool, int,
- const char *, capture_info *,
- dt_operand ** = 0, int = 0);
+ void gen_transform (FILE *f, int, const char *, bool, int,
+ const char *, capture_info *,
+ dt_operand ** = 0, int = 0) override;
};
/* An operator that is represented by native C code. This is always
@@ -757,9 +757,9 @@ public:
unsigned nr_stmts;
/* The identifier replacement vector. */
vec<id_tab> ids;
- virtual void gen_transform (FILE *f, int, const char *, bool, int,
- const char *, capture_info *,
- dt_operand ** = 0, int = 0);
+ void gen_transform (FILE *f, int, const char *, bool, int,
+ const char *, capture_info *,
+ dt_operand ** = 0, int = 0) final override;
};
/* A wrapper around another operand that captures its value. */
@@ -778,9 +778,9 @@ public:
bool value_match;
/* The captured value. */
operand *what;
- virtual void gen_transform (FILE *f, int, const char *, bool, int,
- const char *, capture_info *,
- dt_operand ** = 0, int = 0);
+ void gen_transform (FILE *f, int, const char *, bool, int,
+ const char *, capture_info *,
+ dt_operand ** = 0, int = 0) final override;
};
/* if expression. */
@@ -1655,7 +1655,7 @@ public:
: dt_node (type, parent_), op (op_), match_dop (match_dop_),
pos (pos_), value_match (false), for_id (current_id) {}
- void gen (FILE *, int, bool, int);
+ void gen (FILE *, int, bool, int) final override;
unsigned gen_predicate (FILE *, int, const char *, bool);
unsigned gen_match_op (FILE *, int, const char *, bool);
@@ -1681,7 +1681,7 @@ public:
indexes (indexes_), info (NULL) {}
void gen_1 (FILE *, int, bool, operand *);
- void gen (FILE *f, int, bool, int);
+ void gen (FILE *f, int, bool, int) final override;
};
template<>