diff gen/todebug.cpp @ 683:b411c41a9716

Only allocate the module file name once. Fixes #90.
author Christian Kamm <kamm incasoftware de>
date Sun, 12 Oct 2008 10:35:16 +0200
parents 6aaa3d3c1183
children 363bb6c0cc80
line wrap: on
line diff
--- a/gen/todebug.cpp	Sat Oct 11 22:44:17 2008 +0200
+++ b/gen/todebug.cpp	Sun Oct 12 10:35:16 2008 +0200
@@ -628,7 +628,7 @@
 
     // we might be generating for an import
     if (!m->ir.irModule)
-        m->ir.irModule = new IrModule(m);
+        m->ir.irModule = new IrModule(m, m->srcfile->toChars());
     else if (m->ir.irModule->dwarfCompileUnit)
     {
         if (m->ir.irModule->dwarfCompileUnit->getParent() == gIR->module)