annotate dmd/TypeInfoConstDeclaration.d @ 73:ef02e2e203c2

Updating to dmd2.033
author korDen
date Sat, 28 Aug 2010 19:42:41 +0400
parents 2e2a5c3f943a
children df6d0f967680
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.TypeInfoConstDeclaration;
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;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.TypeInfoDeclaration;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
5 import dmd.Type;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 import dmd.backend.dt_t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 import dmd.backend.Util;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
8 import dmd.backend.TYM;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
9
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 class TypeInfoConstDeclaration : 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.typeinfoconst.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("TypeInfoConstDeclaration.toDt() %s\n", toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 dtxoff(pdt, Type.typeinfoconst.toVtblSymbol(), 0, TYnptr); // vtbl for TypeInfo_Const
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