summaryrefslogtreecommitdiff
path: root/Type.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Type.hh')
-rw-r--r--Type.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/Type.hh b/Type.hh
index b3779d4..6233c1f 100644
--- a/Type.hh
+++ b/Type.hh
@@ -132,6 +132,15 @@ class CharType : public IntegerBaseType {
Context* context) override;
};
+class ShortType : public IntegerBaseType {
+ public:
+ ShortType();
+ virtual Value CreateBinaryOperation(BinaryOperator op, Value v0, Value v1,
+ Context* context) override;
+ virtual Value CreateUnaryOperation(UnaryOperator op, Value v,
+ Context* context) override;
+};
+
class IntegerType : public IntegerBaseType {
public:
IntegerType();