Rename DVarValue to DLValue

This commit is contained in:
Martin 2016-06-08 22:27:22 +02:00
parent 963a10b225
commit 0c0c1ecaf5
14 changed files with 77 additions and 77 deletions

View file

@ -1037,7 +1037,7 @@ DValue *DtoArgument(Parameter *fnarg, Expression *argexp) {
if (fnarg && (fnarg->storageClass & (STCref | STCout))) {
Loc loc;
DValue *arg = toElem(argexp, true);
return new DVarValue(argexp->type,
return new DLValue(argexp->type,
arg->isLVal() ? arg->getLVal() : makeLValue(loc, arg));
}
@ -1053,7 +1053,7 @@ DValue *DtoArgument(Parameter *fnarg, Expression *argexp) {
// byval arg, but expr has no storage yet
if (DtoIsInMemoryOnly(argexp->type) && (arg->isSlice() || arg->isNull())) {
LLValue *alloc = DtoAlloca(argexp->type, ".tmp_arg");
auto vv = new DVarValue(argexp->type, alloc);
auto vv = new DLValue(argexp->type, alloc);
DtoAssign(argexp->loc, vv, arg);
arg = vv;
}