Mercurial > projects > ldc
comparison dmd/mtype.h @ 715:30b42a283c8e
Removed TypeOpaque from DMD.
Changed runtime functions taking opaque[] to void[].
Implemented proper type painting, to avoid "resizing" array casts in runtime calls that previously took opaque[].
Implemented dynamic arrays as first class types, this implements proper ABI for these types on x86.
Added dwarf region end after call to assert function, fixes some problems with llvm not allowing this to be missing.
Reverted change to WithStatement from rev [704] it breaks MiniD, mini/with2.d needs to be fixed some other way...
Fixed tango bug 1339 in runtime, problem with _adReverseChar on invalid UTF-8.
Disabled .bc generation in the compiler runtime part, genobj.d triggers some llvm bug when using debug info. the .o seems to work fine.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 14:55:33 +0200 |
parents | 6aaa3d3c1183 |
children | e177ae483f8e |
comparison
equal
deleted
inserted
replaced
714:1e98c99a87cb | 715:30b42a283c8e |
---|---|
96 Tinstance, | 96 Tinstance, |
97 Ttypeof, | 97 Ttypeof, |
98 Ttuple, | 98 Ttuple, |
99 Tslice, | 99 Tslice, |
100 | 100 |
101 // LDC | |
102 Topaque, | |
103 | |
104 TMAX | 101 TMAX |
105 }; | 102 }; |
106 | 103 |
107 #define Tascii Tchar | 104 #define Tascii Tchar |
108 | 105 |
174 static ClassDeclaration *typeinfoassociativearray; | 171 static ClassDeclaration *typeinfoassociativearray; |
175 static ClassDeclaration *typeinfoenum; | 172 static ClassDeclaration *typeinfoenum; |
176 static ClassDeclaration *typeinfofunction; | 173 static ClassDeclaration *typeinfofunction; |
177 static ClassDeclaration *typeinfodelegate; | 174 static ClassDeclaration *typeinfodelegate; |
178 static ClassDeclaration *typeinfotypelist; | 175 static ClassDeclaration *typeinfotypelist; |
179 | |
180 // LDC, for runtime function signatures that contain | |
181 // AAs or arrays of unknown type | |
182 static Type* topaque; | |
183 | 176 |
184 static Type *basic[TMAX]; | 177 static Type *basic[TMAX]; |
185 static unsigned char mangleChar[TMAX]; | 178 static unsigned char mangleChar[TMAX]; |
186 static StringTable stringtable; | 179 static StringTable stringtable; |
187 | 180 |
672 Type *semantic(Loc loc, Scope *sc); | 665 Type *semantic(Loc loc, Scope *sc); |
673 void resolve(Loc loc, Scope *sc, Expression **pe, Type **pt, Dsymbol **ps); | 666 void resolve(Loc loc, Scope *sc, Expression **pe, Type **pt, Dsymbol **ps); |
674 void toCBuffer2(OutBuffer *buf, HdrGenState *hgs, int mod); | 667 void toCBuffer2(OutBuffer *buf, HdrGenState *hgs, int mod); |
675 }; | 668 }; |
676 | 669 |
677 //LDC | |
678 struct TypeOpaque : Type | |
679 { | |
680 TypeOpaque() : Type(Topaque, NULL) {} | |
681 void toCBuffer2(OutBuffer *buf, HdrGenState *hgs, int mod); | |
682 }; | |
683 | |
684 /**************************************************************/ | 670 /**************************************************************/ |
685 | 671 |
686 //enum InOut { None, In, Out, InOut, Lazy }; | 672 //enum InOut { None, In, Out, InOut, Lazy }; |
687 | 673 |
688 struct Argument : Object | 674 struct Argument : Object |