annotate dmd/TypeInfoInvariantDeclaration.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
1 module dmd.TypeInfoInvariantDeclaration;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
2
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
3 import dmd.Type;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
4 import dmd.TypeInfoDeclaration;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 import dmd.backend.dt_t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 import dmd.backend.Util;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
7 import dmd.backend.TYM;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
8
93
df6d0f967680 implemented a whole bunch of methods to make phobos 2.035 compile
Trass3r
parents: 73
diff changeset
9 version(DMDV2)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 class TypeInfoInvariantDeclaration : TypeInfoDeclaration
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 this(Type tinfo)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 super(tinfo, 0);
73
ef02e2e203c2 Updating to dmd2.033
korDen
parents: 72
diff changeset
15 type = Type.typeinfoinvariant.type;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
18 override void toDt(dt_t** pdt)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 //printf("TypeInfoInvariantDeclaration.toDt() %s\n", toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 dtxoff(pdt, Type.typeinfoinvariant.toVtblSymbol(), 0, TYnptr); // vtbl for TypeInfo_Invariant
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
22 dtdword(pdt, 0); // monitor
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 Type tm = tinfo.mutableOf();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
24 tm = tm.merge();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 tm.getTypeInfo(null);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
26 dtxoff(pdt, tm.vtinfo.toSymbol(), 0, TYnptr);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
28 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
29