expose Value::type and add asserts

This commit is contained in:
Joshua Warner
2014-05-01 12:14:27 -06:00
parent 00253ce528
commit 42fec084b0
5 changed files with 54 additions and 30 deletions

View File

@ -40,7 +40,15 @@ class Compiler {
static const unsigned TailJump = 1 << 2;
static const unsigned LongJumpOrCall = 1 << 3;
class Operand { };
class Operand {
public:
ir::Type type;
Operand(ir::Type type) : type(type)
{
}
};
class State { };
class Subroutine { };
@ -121,7 +129,7 @@ class Compiler {
ir::Type dstType) = 0;
virtual void condJump(lir::TernaryOperation op,
unsigned size,
ir::Type type,
Operand* a,
Operand* b,
Operand* address) = 0;