Mercurial > projects > ldc
comparison gen/toobj.cpp @ 1271:0686701178d3
Moved special casing of 'assert(this, "null this");' generated statements from !ThisExp into !AssertExp.
Fixed filenames for array bounds errors and probably others, fixes #271 .
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Mon, 27 Apr 2009 13:30:48 +0200 |
parents | 17d4d554300a |
children | fa20726fe074 |
comparison
equal
deleted
inserted
replaced
1270:dd135ff697fa | 1271:0686701178d3 |
---|---|
96 | 96 |
97 // reset all IR data stored in Dsymbols | 97 // reset all IR data stored in Dsymbols |
98 IrDsymbol::resetAll(); | 98 IrDsymbol::resetAll(); |
99 | 99 |
100 sir->setState(&ir); | 100 sir->setState(&ir); |
101 | |
102 // module ir state | |
103 // might already exist via import, just overwrite since | |
104 // the global created for the filename must belong to the right llvm module | |
105 // FIXME: but shouldn't this always get reset between modules? like other IrSymbols | |
106 this->ir.irModule = new IrModule(this, srcfile->toChars()); | |
107 | 101 |
108 // set target triple | 102 // set target triple |
109 ir.module->setTargetTriple(global.params.targetTriple); | 103 ir.module->setTargetTriple(global.params.targetTriple); |
110 | 104 |
111 // set final data layout | 105 // set final data layout |