diff gen/llvmhelpers.cpp @ 1403:e5c5d354c649

Tentative fix for semantic3 on imported modules and unnecessary template function definition issue. Please test! Also change linkage of __interfaceInfos to external (same as __Class, __vtbl, __init). The other change might make this superfluous.
author Christian Kamm <kamm incasoftware de>
date Thu, 21 May 2009 10:56:04 +0200
parents 59c2aa9def23
children afecdb8ee962
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Wed May 20 21:13:41 2009 +0200
+++ b/gen/llvmhelpers.cpp	Thu May 21 10:56:04 2009 +0200
@@ -1371,6 +1371,11 @@
     {
         if (fd->isArrayOp)
             return true;
+            
+        // we can't (and probably shouldn't?) define functions 
+        // that weren't semantic3'ed
+        if (fd->semanticRun < 4)
+            return false;
     }
 
     TemplateInstance* tinst = DtoIsTemplateInstance(s);