Mercurial > projects > ldc
diff gen/structs.cpp @ 940:39519a1ff603
Changed the way LDC determines if a template instantiation needs to get a definition, seems to speed up compile times quite a bit in some cases.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 04 Feb 2009 18:48:03 +0100 |
parents | af7a6faf9406 |
children | 03d7c4aac654 |
line wrap: on
line diff
--- a/gen/structs.cpp Wed Feb 04 18:39:39 2009 +0100 +++ b/gen/structs.cpp Wed Feb 04 18:48:03 2009 +0100 @@ -607,7 +607,7 @@ sd->ir.irStruct->init = initvar; gIR->constInitList.push_back(sd); - if (DtoIsTemplateInstance(sd) || sd->getModule() == gIR->dmodule) + if (mustDefineSymbol(sd)) gIR->defineList.push_back(sd); }