Eliminate the need for TypeFunction::funcdecl

This commit is contained in:
Alexey Prokhin
2013-10-01 14:00:28 +04:00
parent ca82589e25
commit b819975c84
22 changed files with 187 additions and 160 deletions

View File

@@ -915,7 +915,7 @@ struct FuncDeclaration : Declaration
virtual FuncDeclaration *toAliasFunc() { return this; }
#if IN_LLVM
// LDC stuff
IrFuncTy irFty;
/// Codegen traversal
void codegen(Ir* ir);

View File

@@ -744,8 +744,7 @@ struct TypeFunction : TypeNext
Expression *defaultInit(Loc loc);
#if IN_LLVM
// LDC
IrFuncTy fty;
IrFuncTy irFty;
FuncDeclaration* funcdecl;
#endif
@@ -778,6 +777,10 @@ struct TypeDelegate : TypeNext
#if IN_DMD
type *toCtype();
#endif
#if IN_LLVM
IrFuncTy irFty;
#endif
};
struct TypeQualified : Type