summaryrefslogtreecommitdiff
path: root/gcc/tree-pass.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-pass.h')
-rw-r--r--gcc/tree-pass.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index 9bb6455ceb7..9de2822ccce 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -25,6 +25,8 @@ along with GCC; see the file COPYING3. If not see
#include "timevar.h"
#include "dumpfile.h"
+struct function;
+
/* Optimization pass type. */
enum opt_pass_type
{
@@ -88,7 +90,7 @@ public:
/* This pass and all sub-passes are executed only if the function returns
true. The default implementation returns true. */
- virtual bool gate ();
+ virtual bool gate (function *fun);
/* This is the code to run. If has_execute is false, then there should
be sub-passes otherwise this pass does nothing.