mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-30 11:00:05 +02:00
Make IrFuncTy a member of TypeFunction. Reset between modules compiled in the
same LDC call.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user