aboutsummaryrefslogtreecommitdiff
path: root/gcc/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/context.h')
-rw-r--r--gcc/context.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/context.h b/gcc/context.h
index 3caf02f..66260cd 100644
--- a/gcc/context.h
+++ b/gcc/context.h
@@ -22,14 +22,23 @@ along with GCC; see the file COPYING3. If not see
namespace gcc {
+class pass_manager;
+
/* GCC's internal state can be divided into zero or more
"parallel universe" of state; an instance of this class is one such
context of state. */
class context
{
public:
+ context();
+
+ /* Pass-management. */
+
+ pass_manager *get_passes () { gcc_assert (passes_); return passes_; }
- /* Currently empty. */
+private:
+ /* Pass-management. */
+ pass_manager *passes_;
}; // class context