Make loop jump mode public so I can switch on it.
authorEric Anholt <eric@anholt.net>
Fri, 7 May 2010 19:35:47 +0000 (12:35 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 24 Jun 2010 22:05:20 +0000 (15:05 -0700)
ir.h

diff --git a/ir.h b/ir.h
index dbf5df893a9ec6b8a1e180848e1b91f00dfbe77c..ab041aa848ac759209cec2c4eec4a7f623437d66 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -756,9 +756,9 @@ public:
    };
 
    ir_loop_jump(jump_mode mode)
-      : mode(mode)
    {
-      /* empty */
+      this->mode = mode;
+      this->loop = loop;
    }
 
    virtual ir_instruction *clone(struct hash_table *) const;
@@ -780,9 +780,11 @@ public:
       return mode == jump_continue;
    }
 
-private:
    /** Mode selector for the jump instruction. */
    enum jump_mode mode;
+private:
+   /** Loop containing this break instruction. */
+   ir_loop *loop;
 };
 /*@}*/