mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
[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:
parent
7825be29ee
commit
94c47aa1fa
33 changed files with 194 additions and 108 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue