Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1402:1311dabc6a1f | 1403:e5c5d354c649 |
---|---|
1369 { | 1369 { |
1370 if (FuncDeclaration* fd = s->isFuncDeclaration()) | 1370 if (FuncDeclaration* fd = s->isFuncDeclaration()) |
1371 { | 1371 { |
1372 if (fd->isArrayOp) | 1372 if (fd->isArrayOp) |
1373 return true; | 1373 return true; |
1374 | |
1375 // we can't (and probably shouldn't?) define functions | |
1376 // that weren't semantic3'ed | |
1377 if (fd->semanticRun < 4) | |
1378 return false; | |
1374 } | 1379 } |
1375 | 1380 |
1376 TemplateInstance* tinst = DtoIsTemplateInstance(s); | 1381 TemplateInstance* tinst = DtoIsTemplateInstance(s); |
1377 if (tinst) | 1382 if (tinst) |
1378 { | 1383 { |