diff 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
line wrap: on
line diff
--- a/dmd/template.h	Wed Feb 04 18:39:39 2009 +0100
+++ b/dmd/template.h	Wed Feb 04 18:48:03 2009 +0100
@@ -326,6 +326,7 @@
 
     // LDC
     TemplateInstance *tinst; // enclosing template instance
+    Module* tmodule; // module from outermost enclosing template instantiation
     void printInstantiationTrace();
 };