Mercurial > projects > ddmd
annotate dmd/TypeInfoConstDeclaration.d @ 93:df6d0f967680
implemented a whole bunch of methods to make phobos 2.035 compile
and some additional ones I came across
author | Trass3r |
---|---|
date | Mon, 30 Aug 2010 22:50:30 +0200 |
parents | ef02e2e203c2 |
children | e28b18c23469 |
rev | line source |
---|---|
72 | 1 module dmd.TypeInfoConstDeclaration; |
2 | |
3 import dmd.Type; | |
0 | 4 import dmd.TypeInfoDeclaration; |
72 | 5 import dmd.Type; |
0 | 6 import dmd.backend.dt_t; |
7 import dmd.backend.Util; | |
72 | 8 import dmd.backend.TYM; |
9 | |
93
df6d0f967680
implemented a whole bunch of methods to make phobos 2.035 compile
Trass3r
parents:
73
diff
changeset
|
10 version(DMDV2) |
0 | 11 class TypeInfoConstDeclaration : TypeInfoDeclaration |
12 { | |
13 this(Type tinfo) | |
14 { | |
15 super(tinfo, 0); | |
73 | 16 type = Type.typeinfoconst.type; |
0 | 17 } |
18 | |
72 | 19 override void toDt(dt_t** pdt) |
0 | 20 { |
21 //printf("TypeInfoConstDeclaration.toDt() %s\n", toChars()); | |
22 dtxoff(pdt, Type.typeinfoconst.toVtblSymbol(), 0, TYnptr); // vtbl for TypeInfo_Const | |
23 dtdword(pdt, 0); // monitor | |
24 Type tm = tinfo.mutableOf(); | |
25 tm = tm.merge(); | |
26 tm.getTypeInfo(null); | |
27 dtxoff(pdt, tm.vtinfo.toSymbol(), 0, TYnptr); | |
28 } | |
29 } | |
30 |