Mercurial > projects > ldc
diff dmd/mtype.h @ 1147:dbe4af57b240
Changed use of toObjFile to a new codegen method.
More versioning of DMD specific codegen code.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 27 Mar 2009 17:54:27 +0100 |
parents | 1860414bf3b7 |
children | a6dbd571d417 |
line wrap: on
line diff
--- a/dmd/mtype.h Thu Mar 26 20:45:53 2009 +0100 +++ b/dmd/mtype.h Fri Mar 27 17:54:27 2009 +0100 @@ -26,6 +26,7 @@ #include "../ir/irtype.h" #include "../ir/irfuncty.h" namespace llvm { class Type; } +struct Ir; #endif struct Scope; @@ -207,7 +208,11 @@ int covariant(Type *t); char *toChars(); static char needThisPrefix(); +#if IN_LLVM + static void init(Ir*); +#else static void init(); +#endif d_uns64 size(); virtual d_uns64 size(Loc loc); virtual unsigned alignsize(); @@ -275,6 +280,7 @@ #if IN_LLVM // LDC IrType ir; + static Ir* sir; #endif };