Mercurial > projects > ldc
annotate gen/tocsym.cpp @ 945:03d7c4aac654
SWITCHED TO LLVM 2.5 !
Applied patch from ticket #129 to compile against latest LLVM. Thanks Frits van Bommel.
Fixed implicit return by asm block at the end of a function on x86-32. Other architectures will produce an error at the moment. Adding support for new targets is fairly simple.
Fixed return calling convention for complex numbers, ST and ST(1) were switched around.
Added some testcases.
I've run a dstress test and there are no regressions. However, the runtime does not seem to compile with symbolic debug information. -O3 -release -inline works well and is what I used for the dstress run. Tango does not compile, a small workaround is needed in tango.io.digest.Digest.Digest.hexDigest. See ticket #206 .
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 08 Feb 2009 05:26:54 +0100 |
parents | 29c0d1194033 |
children |
rev | line source |
---|---|
1 | 1 |
2 // Copyright (c) 1999-2005 by Digital Mars | |
3 // All Rights Reserved | |
4 // written by Walter Bright | |
5 // www.digitalmars.com | |
6 // License for redistribution is by either the Artistic License | |
7 // in artistic.txt, or the GNU General Public License in gnu.txt. | |
8 // See the included readme.txt for details. | |
9 | |
10 // stubbed out for dmdfe. Original is in dmd/tocsym.c | |
11 | |
12 #include <stddef.h> | |
13 | |
14 #include "mars.h" | |
15 #include "module.h" | |
16 #include "mtype.h" | |
17 #include "declaration.h" | |
18 #include "statement.h" | |
19 #include "enum.h" | |
20 #include "aggregate.h" | |
21 #include "init.h" | |
22 #include "attrib.h" | |
23 #include "lexer.h" | |
24 | |
25 | |
913
29c0d1194033
Fix #198 and #199 by making CTFE on static struct initializers work.
Christian Kamm <kamm incasoftware de>
parents:
758
diff
changeset
|
26 Symbol *StaticStructInitDeclaration::toSymbol() |
1 | 27 { |
913
29c0d1194033
Fix #198 and #199 by making CTFE on static struct initializers work.
Christian Kamm <kamm incasoftware de>
parents:
758
diff
changeset
|
28 return 0; |
1 | 29 } |
30 | |
31 /************************************* | |
32 * Helper | |
33 */ | |
34 | |
35 Symbol *Dsymbol::toSymbolX(const char *prefix, int sclass, TYPE *t, const char *suffix) | |
36 { | |
37 return 0; | |
38 } | |
39 | |
40 /************************************* | |
41 */ | |
42 | |
43 Symbol *Dsymbol::toSymbol() | |
44 { | |
45 return 0; | |
46 } | |
47 | |
48 /********************************* | |
49 * Generate import symbol from symbol. | |
50 */ | |
51 | |
52 Symbol *Dsymbol::toImport() | |
53 { | |
54 return 0; | |
55 } | |
56 | |
57 /************************************* | |
58 */ | |
59 | |
60 Symbol *Dsymbol::toImport(Symbol *sym) | |
61 { | |
62 return 0; | |
63 } | |
64 | |
65 /************************************* | |
66 */ | |
67 | |
68 Symbol *VarDeclaration::toSymbol() | |
69 { | |
70 return 0; | |
71 } | |
72 | |
73 /************************************* | |
74 */ | |
75 | |
76 Symbol *ClassInfoDeclaration::toSymbol() | |
77 { | |
78 return 0; | |
79 } | |
80 | |
81 /************************************* | |
82 */ | |
83 | |
84 Symbol *ModuleInfoDeclaration::toSymbol() | |
85 { | |
86 return 0; | |
87 } | |
88 | |
89 /************************************* | |
90 */ | |
91 | |
92 Symbol *TypeInfoDeclaration::toSymbol() | |
93 { | |
94 return 0; | |
95 } | |
96 | |
97 /************************************* | |
98 */ | |
99 | |
100 Symbol *FuncDeclaration::toSymbol() | |
101 { | |
102 | |
103 return 0; | |
104 } | |
105 | |
106 /************************************* | |
107 */ | |
108 | |
109 Symbol *FuncDeclaration::toThunkSymbol(int offset) | |
110 { | |
111 return 0; | |
112 } | |
113 | |
114 /************************************* | |
115 */ | |
116 | |
117 Symbol *FuncAliasDeclaration::toSymbol() | |
118 { | |
119 | |
120 return 0; | |
121 } | |
122 | |
123 | |
124 /**************************************** | |
125 * Create a static symbol we can hang DT initializers onto. | |
126 */ | |
127 | |
128 Symbol *static_sym() | |
129 { | |
130 return 0; | |
131 } | |
132 | |
133 /************************************* | |
134 * Create the "ClassInfo" symbol | |
135 */ | |
136 | |
137 Symbol *ClassDeclaration::toSymbol() | |
138 { | |
139 return 0; | |
140 } | |
141 | |
142 /************************************* | |
143 * Create the "InterfaceInfo" symbol | |
144 */ | |
145 | |
146 Symbol *InterfaceDeclaration::toSymbol() | |
147 { | |
148 return 0; | |
149 } | |
150 | |
151 /************************************* | |
152 * Create the "ModuleInfo" symbol | |
153 */ | |
154 | |
155 Symbol *Module::toSymbol() | |
156 { | |
157 return 0; | |
158 } | |
159 | |
160 /************************************* | |
161 * This is accessible via the ClassData, but since it is frequently | |
162 * needed directly (like for rtti comparisons), make it directly accessible. | |
163 */ | |
164 | |
165 Symbol *ClassDeclaration::toVtblSymbol() | |
166 { | |
167 return 0; | |
168 } | |
169 | |
170 /********************************** | |
171 * Create the static initializer for the struct/class. | |
172 */ | |
173 | |
174 Symbol *AggregateDeclaration::toInitializer() | |
175 { | |
176 return 0; | |
177 } | |
178 | |
179 | |
180 /****************************************** | |
181 */ | |
182 | |
183 Symbol *Module::toModuleAssert() | |
184 { | |
185 return 0; | |
186 } | |
187 | |
188 /****************************************** | |
189 */ | |
190 | |
191 Symbol *Module::toModuleArray() | |
192 { | |
193 return 0; | |
194 } | |
195 | |
196 /******************************************** | |
197 * Determine the right symbol to look up | |
198 * an associative array element. | |
199 * Input: | |
200 * flags 0 don't add value signature | |
201 * 1 add value signature | |
202 */ | |
203 | |
758
f04dde6e882c
Added initial D2 support, D2 frontend and changes to codegen to make things compile.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
96
diff
changeset
|
204 Symbol *TypeAArray::aaGetSymbol(const char *func, int flags) |
1 | 205 { |
206 return 0; | |
207 } | |
208 |