Mercurial > projects > ldc
comparison gen/irstate.h @ 946:1714836f2c0b
Mostly rewrite debug info generation in terms of llvm/Analysis/DebugInfo.h.
Add getCompilationModule to Dsymbol and fix template compile unit decision code.
Runtime compiles with -g again.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 08 Feb 2009 16:50:22 +0100 |
parents | 03d7c4aac654 |
children | e048e36bc155 |
comparison
equal
deleted
inserted
replaced
945:03d7c4aac654 | 946:1714836f2c0b |
---|---|
129 }; | 129 }; |
130 | 130 |
131 // represents the module | 131 // represents the module |
132 struct IRState | 132 struct IRState |
133 { | 133 { |
134 IRState(); | 134 IRState(llvm::Module* m); |
135 | 135 |
136 // module | 136 // module |
137 Module* dmodule; | 137 Module* dmodule; |
138 llvm::Module* module; | 138 llvm::Module* module; |
139 | 139 |
188 std::vector<DValue*> arrays; | 188 std::vector<DValue*> arrays; |
189 | 189 |
190 // builder helper | 190 // builder helper |
191 IRBuilderHelper ir; | 191 IRBuilderHelper ir; |
192 | 192 |
193 // debug info helper | |
194 llvm::DIFactory difactory; | |
195 | |
193 typedef std::list<Dsymbol*> DsymbolList; | 196 typedef std::list<Dsymbol*> DsymbolList; |
194 // dsymbols that need to be resolved | 197 // dsymbols that need to be resolved |
195 DsymbolList resolveList; | 198 DsymbolList resolveList; |
196 // dsymbols that need to be declared | 199 // dsymbols that need to be declared |
197 DsymbolList declareList; | 200 DsymbolList declareList; |