Slightly refactor ABIRewrite interface for clarification

* put(): pass DValue alone, without explicit D type
* get(): pass LLValue instead of a faked DValue
This commit is contained in:
Martin 2015-09-25 18:37:28 +02:00
parent 9e194bfe2c
commit 80c677be46
9 changed files with 68 additions and 76 deletions

View file

@ -867,8 +867,7 @@ void DtoDefineFunction(FuncDeclaration* fd)
LLValue* mem = DtoAlloca(irparam->arg->type, vd->ident->toChars());
// let the abi transform the argument back first
DImValue arg_dval(vd->type, irparam->value);
irFty.getParam(vd->type, llArgIdx, &arg_dval, mem);
irFty.getParam(vd->type, llArgIdx, irparam->value, mem);
// set the arg var value to the alloca
irparam->value = mem;