mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 11:26:02 +03:00
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:
parent
9e194bfe2c
commit
80c677be46
9 changed files with 68 additions and 76 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue