Make IrFuncTy a member of TypeFunction. Reset between modules compiled in the

same LDC call.
This commit is contained in:
Christian Kamm
2009-03-07 14:25:30 +01:00
parent 5af82ee8d3
commit ed9591d81f
12 changed files with 201 additions and 169 deletions

View File

@@ -2659,9 +2659,6 @@ TypeFunction::TypeFunction(Arguments *parameters, Type *treturn, int varargs, en
this->varargs = varargs;
this->linkage = linkage;
this->inuse = 0;
// LDC
this->fty = NULL;
}
Type *TypeFunction::syntaxCopy()

View File

@@ -23,8 +23,8 @@
// llvm
#include "../ir/irtype.h"
#include "../ir/irfuncty.h"
namespace llvm { class Type; }
struct IrFuncTy;
struct Scope;
struct Identifier;
@@ -437,7 +437,7 @@ struct TypeFunction : Type
unsigned totym();
// LDC
IrFuncTy* fty;
IrFuncTy fty;
};
struct TypeDelegate : Type