comparison dmd/module.h @ 1146:1860414bf3b7

* Moved ir/irsymbol.cpp/h into ir/irdsymbol.cpp/h. * Added #if IN_DMD versioning around DMD backend specific code in the D1 frontend, D2 is currently broken. * All part of a greater cleanup scheme.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Thu, 26 Mar 2009 20:45:53 +0100
parents b30fe7e1dbb9
children dbe4af57b240
comparison
equal deleted inserted replaced
1145:40caa8207b3e 1146:1860414bf3b7
30 #if IN_LLVM 30 #if IN_LLVM
31 struct DValue; 31 struct DValue;
32 typedef DValue elem; 32 typedef DValue elem;
33 namespace llvm { class Module; } 33 namespace llvm { class Module; }
34 #else 34 #else
35
35 #ifdef IN_GCC 36 #ifdef IN_GCC
36 union tree_node; typedef union tree_node elem; 37 union tree_node; typedef union tree_node elem;
37 #else 38 #else
38 struct elem; 39 struct elem;
39 #endif 40 #endif
145 void addDeferredSemantic(Dsymbol *s); 146 void addDeferredSemantic(Dsymbol *s);
146 void runDeferredSemantic(); 147 void runDeferredSemantic();
147 int imports(Module *m); 148 int imports(Module *m);
148 149
149 // Back end 150 // Back end
150 151 #if IN_DMD
151 int doppelganger; // sub-module 152 int doppelganger; // sub-module
152 Symbol *cov; // private uint[] __coverage; 153 Symbol *cov; // private uint[] __coverage;
153 unsigned *covb; // bit array of valid code line numbers 154 unsigned *covb; // bit array of valid code line numbers
154 155
155 Symbol *sictor; // module order independent constructor 156 Symbol *sictor; // module order independent constructor
169 static Symbol *gencritsec(); 170 static Symbol *gencritsec();
170 elem *toEfilename(); 171 elem *toEfilename();
171 elem *toEmodulename(); 172 elem *toEmodulename();
172 173
173 Symbol *toSymbol(); 174 Symbol *toSymbol();
175 #endif
174 void genmoduleinfo(); 176 void genmoduleinfo();
175 177
176 // LDC 178 // LDC
177 llvm::Module* genLLVMModule(int multiobj); 179 llvm::Module* genLLVMModule(int multiobj);
178 void buildTargetFiles(); 180 void buildTargetFiles();