comparison dmd/TypeInfoDeclaration.d @ 174:af724d3510d7

lot os toCBuffer methods implemented moved shared Type.* stuff into Global
author korDen
date Sun, 10 Oct 2010 03:47:23 +0400
parents e28b18c23469
children e3afd1303184
comparison
equal deleted inserted replaced
173:d237b38b5858 174:af724d3510d7
6 import dmd.Dsymbol; 6 import dmd.Dsymbol;
7 import dmd.Module; 7 import dmd.Module;
8 import dmd.Scope; 8 import dmd.Scope;
9 import dmd.Loc; 9 import dmd.Loc;
10 import dmd.STC; 10 import dmd.STC;
11 import dmd.Global;
11 import dmd.OutBuffer; 12 import dmd.OutBuffer;
12 import dmd.PROT; 13 import dmd.PROT;
13 import dmd.LINK; 14 import dmd.LINK;
14 15
15 import dmd.backend.Symbol; 16 import dmd.backend.Symbol;
27 { 28 {
28 Type tinfo; 29 Type tinfo;
29 30
30 this(Type tinfo, int internal) 31 this(Type tinfo, int internal)
31 { 32 {
32 super(Loc(0), Type.typeinfo.type, tinfo.getTypeInfoIdent(internal), null); 33 super(Loc(0), global.typeinfo.type, tinfo.getTypeInfoIdent(internal), null);
33 this.tinfo = tinfo; 34 this.tinfo = tinfo;
34 storage_class = STC.STCstatic | STC.STCgshared; 35 storage_class = STC.STCstatic | STC.STCgshared;
35 protection = PROT.PROTpublic; 36 protection = PROT.PROTpublic;
36 linkage = LINK.LINKc; 37 linkage = LINK.LINKc;
37 } 38 }
38 39
39 version (DumbClone) { 40 version (DumbClone) {
40 } else { 41 } else {
41 Type clone() 42 Type clone()
42 { 43 {
43 assert(false); 44 assert(false);