summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-05-07 12:35:47 -0700
committerEric Anholt <eric@anholt.net>2010-06-24 15:05:20 -0700
commit0c005bd773784ee5feb2ee3d7d00c2c4335eafb4 (patch)
treeeeaeaccebacc7ffc6483df31bdff70fba5485a4e /ir.h
parent4380099c98119611ceee684669d00be26195c7d7 (diff)
Make loop jump mode public so I can switch on it.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ir.h b/ir.h
index dbf5df893a..ab041aa848 100644
--- 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;
};
/*@}*/