comparison dmd/template.h @ 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 330f999ade44
children 7ce8355fbcc6
comparison
equal deleted inserted replaced
939:cac9895be400 940:39519a1ff603
324 TemplateInstance *isTemplateInstance() { return this; } 324 TemplateInstance *isTemplateInstance() { return this; }
325 AliasDeclaration *isAliasDeclaration(); 325 AliasDeclaration *isAliasDeclaration();
326 326
327 // LDC 327 // LDC
328 TemplateInstance *tinst; // enclosing template instance 328 TemplateInstance *tinst; // enclosing template instance
329 Module* tmodule; // module from outermost enclosing template instantiation
329 void printInstantiationTrace(); 330 void printInstantiationTrace();
330 }; 331 };
331 332
332 struct TemplateMixin : TemplateInstance 333 struct TemplateMixin : TemplateInstance
333 { 334 {