summaryrefslogtreecommitdiff
path: root/gcc/compare-elim.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/compare-elim.c')
-rw-r--r--gcc/compare-elim.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/compare-elim.c b/gcc/compare-elim.c
index 3fbe140b80c..7555d48c613 100644
--- a/gcc/compare-elim.c
+++ b/gcc/compare-elim.c
@@ -643,15 +643,6 @@ execute_compare_elim_after_reload (void)
return 0;
}
-static bool
-gate_compare_elim_after_reload (void)
-{
- /* Setting this target hook value is how a backend indicates the need. */
- if (targetm.flags_regnum == INVALID_REGNUM)
- return false;
- return flag_compare_elim_after_reload;
-}
-
namespace {
const pass_data pass_data_compare_elim_after_reload =
@@ -659,7 +650,6 @@ const pass_data pass_data_compare_elim_after_reload =
RTL_PASS, /* type */
"cmpelim", /* name */
OPTGROUP_NONE, /* optinfo_flags */
- true, /* has_gate */
true, /* has_execute */
TV_NONE, /* tv_id */
0, /* properties_required */
@@ -678,8 +668,18 @@ public:
{}
/* opt_pass methods: */
- bool gate () { return gate_compare_elim_after_reload (); }
- unsigned int execute () { return execute_compare_elim_after_reload (); }
+ virtual bool gate (function *)
+ {
+ /* Setting this target hook value is how a backend indicates the need. */
+ if (targetm.flags_regnum == INVALID_REGNUM)
+ return false;
+ return flag_compare_elim_after_reload;
+ }
+
+ virtual unsigned int execute (function *)
+ {
+ return execute_compare_elim_after_reload ();
+ }
}; // class pass_compare_elim_after_reload