mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00
Only allocate the module file name once. Fixes #90.
This commit is contained in:
parent
40f724234d
commit
6cb213badf
7 changed files with 29 additions and 57 deletions
|
@ -628,7 +628,7 @@ LLGlobalVariable* DtoDwarfCompileUnit(Module* m)
|
|||
|
||||
// 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue