use ir::Type in Compiler::store

This commit is contained in:
Joshua Warner
2014-04-30 22:33:54 -06:00
committed by Joshua Warner
parent 8af9bb8297
commit 2ed52c05a8
3 changed files with 57 additions and 40 deletions

View File

@ -2593,11 +2593,18 @@ class MyCompiler: public Compiler {
static_cast<Value*>(index), handler);
}
virtual void store(unsigned srcSize, Operand* src, unsigned dstSize,
virtual void store(ir::Type srcType,
Operand* src,
ir::Type dstType,
Operand* dst)
{
appendMove(&c, lir::Move, srcSize, srcSize, static_cast<Value*>(src),
dstSize, static_cast<Value*>(dst));
appendMove(&c,
lir::Move,
srcType.size(),
srcType.size(),
static_cast<Value*>(src),
dstType.size(),
static_cast<Value*>(dst));
}
virtual Operand* load(unsigned srcSize, unsigned srcSelectSize, Operand* src,