[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)

Fixed: tango.io.Console seems to be working now.
This commit is contained in:
Tomas Lindquist Olsen 2008-01-22 00:01:16 +01:00
parent 7825be29ee
commit 94c47aa1fa
33 changed files with 194 additions and 108 deletions

View file

@ -42,6 +42,7 @@
#include "gen/runtime.h"
#include "ir/irvar.h"
#include "ir/irmodule.h"
//////////////////////////////////////////////////////////////////////////////////////////
@ -59,10 +60,15 @@ void Module::genobjfile()
deleteObjFile();
// create a new ir state
// TODO look at making the instance static and moving most functionality into IrModule where it belongs
IRState ir;
gIR = &ir;
ir.dmodule = this;
// module ir state
// might already exist via import, just overwrite...
irModule = new IrModule(this);
// name the module
std::string mname(toChars());
if (md != 0)
@ -88,7 +94,7 @@ void Module::genobjfile()
// debug info
if (global.params.symdebug) {
RegisterDwarfSymbols(ir.module);
ir.dmodule->llvmCompileUnit = DtoDwarfCompileUnit(this,true);
DtoDwarfCompileUnit(this);
}
// start out by providing opaque for the built-in class types