diff options
Diffstat (limited to 'gcc/tree-switch-conversion.c')
-rw-r--r-- | gcc/tree-switch-conversion.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c index cf2e7634445..a0f9d19c073 100644 --- a/gcc/tree-switch-conversion.c +++ b/gcc/tree-switch-conversion.c @@ -1465,14 +1465,6 @@ do_switchconv (void) return 0; } -/* The pass gate. */ - -static bool -switchconv_gate (void) -{ - return flag_tree_switch_conversion != 0; -} - namespace { const pass_data pass_data_convert_switch = @@ -1499,7 +1491,7 @@ public: {} /* opt_pass methods: */ - bool gate () { return switchconv_gate (); } + virtual bool gate (function *) { return flag_tree_switch_conversion != 0; } unsigned int execute () { return do_switchconv (); } }; // class pass_convert_switch |