1.1 --- a/src/compiler/HIR.h Wed Dec 26 17:20:55 2012 -0800
1.2 +++ b/src/compiler/HIR.h Thu Dec 27 20:44:50 2012 -0800
1.3 @@ -27,6 +27,7 @@
1.4
1.5 #define HIR_OPS(_) \
1.6 _(Call) \
1.7 + _(Boolean) \
1.8 _(Integer) \
1.9 _(Float) \
1.10 _(String) \
1.11 @@ -127,6 +128,24 @@
1.12 visitor->visit##name(this); \
1.13 }
1.14
1.15 +class HBoolean : public HIR
1.16 +{
1.17 + public:
1.18 + HBoolean(AstNode *node, Type *type, bool value)
1.19 + : HIR(node, type),
1.20 + value_(value)
1.21 + {
1.22 + }
1.23 +
1.24 + DEFINE_HIR(Boolean);
1.25 + bool value() const {
1.26 + return value_;
1.27 + }
1.28 +
1.29 + private:
1.30 + bool value_;
1.31 +};
1.32 +
1.33 class HInteger : public HIR
1.34 {
1.35 public: