Mercurial > projects > ldc
diff dmd/mtype.c @ 1024:9167d492cbc2
Abstracted more (most) ABI details out of the normal codegen.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 03 Mar 2009 02:51:21 +0100 |
parents | 47f8b54f90b3 |
children | 4d366a75d95f |
line wrap: on
line diff
--- a/dmd/mtype.c Sun Mar 01 22:40:15 2009 +0100 +++ b/dmd/mtype.c Tue Mar 03 02:51:21 2009 +0100 @@ -2659,14 +2659,9 @@ this->varargs = varargs; this->linkage = linkage; this->inuse = 0; - this->retInPtr = false; - this->usesThis = false; - this->usesNest = false; - this->structInregArg = NULL; - this->retAttrs = 0; - this->thisAttrs = 0; - this->reverseParams = false; - this->firstRealArg = 0; + + // LDC + this->fty = NULL; } Type *TypeFunction::syntaxCopy() @@ -2674,13 +2669,6 @@ Type *treturn = next ? next->syntaxCopy() : NULL; Arguments *params = Argument::arraySyntaxCopy(parameters); TypeFunction *t = new TypeFunction(params, treturn, varargs, linkage); - t->retInPtr = retInPtr; - t->usesThis = usesThis; - t->usesNest = usesNest; - t->retAttrs = retAttrs; - t->thisAttrs = thisAttrs; - t->reverseParams = reverseParams; - t->firstRealArg = firstRealArg; return t; } @@ -5316,7 +5304,6 @@ this->ident = ident; this->storageClass = storageClass; this->defaultArg = defaultArg; - this->llvmAttrs = 0; } Argument *Argument::syntaxCopy() @@ -5325,7 +5312,6 @@ type ? type->syntaxCopy() : NULL, ident, defaultArg ? defaultArg->syntaxCopy() : NULL); - a->llvmAttrs = llvmAttrs; return a; }