mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-30 01:00:19 +02:00
[svn r342] Fix DMD bug 2206.
Implement mixin declarations in LLVMDC.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "total.h"
|
||||
#include "init.h"
|
||||
#include "mtype.h"
|
||||
#include "template.h"
|
||||
#include "hdrgen.h"
|
||||
#include "port.h"
|
||||
|
||||
@@ -140,6 +141,15 @@ DValue* DeclarationExp::toElem(IRState* p)
|
||||
DtoForceDeclareDsymbol((Dsymbol*)a->decl->data[i]);
|
||||
}
|
||||
}
|
||||
// mixin declaration
|
||||
else if (TemplateMixin* m = declaration->isTemplateMixin())
|
||||
{
|
||||
Logger::println("TemplateMixin");
|
||||
for (int i=0; i < m->members->dim; ++i)
|
||||
{
|
||||
DtoForceDeclareDsymbol((Dsymbol*)m->members->data[i]);
|
||||
}
|
||||
}
|
||||
// unsupported declaration
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user