Mercurial > projects > ldc
comparison gen/llvmhelpers.cpp @ 1279:04c36605feb9
Fixed array operation codegen when used from imported templates. All array operations are now emitted with template linkage. Fixed #270 .
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Wed, 29 Apr 2009 18:59:39 +0200 |
parents | 8fb39f7f1a7c |
children | 15e9762bb620 |
comparison
equal
deleted
inserted
replaced
1278:8fb39f7f1a7c | 1279:04c36605feb9 |
---|---|
1350 | 1350 |
1351 ////////////////////////////////////////////////////////////////////////////////////////// | 1351 ////////////////////////////////////////////////////////////////////////////////////////// |
1352 | 1352 |
1353 bool mustDefineSymbol(Dsymbol* s) | 1353 bool mustDefineSymbol(Dsymbol* s) |
1354 { | 1354 { |
1355 if (FuncDeclaration* fd = s->isFuncDeclaration()) | |
1356 { | |
1357 if (fd->isArrayOp) | |
1358 return true; | |
1359 } | |
1360 | |
1355 TemplateInstance* tinst = DtoIsTemplateInstance(s); | 1361 TemplateInstance* tinst = DtoIsTemplateInstance(s); |
1356 if (tinst) | 1362 if (tinst) |
1357 { | 1363 { |
1358 if (!opts::singleObj) | 1364 if (!opts::singleObj) |
1359 return true; | 1365 return true; |