Fixed tuple fields, thanx downs

This commit is contained in:
Tomas Lindquist Olsen
2008-10-27 01:11:41 +01:00
parent b3b98c3284
commit fdc172377e
2 changed files with 21 additions and 0 deletions

View File

@@ -157,6 +157,9 @@ struct TupleDeclaration : Declaration
int needThis();
TupleDeclaration *isTupleDeclaration() { return this; }
// LDC we need this
void toObjFile(int multiobj); // compile to .obj file
};
/**************************************************************/

View File

@@ -911,6 +911,24 @@ unsigned ClassDeclaration::baseVtblOffset(BaseClass *bc)
/* ================================================================== */
void TupleDeclaration::toObjFile(int multiobj)
{
Logger::println("TupleDeclaration::toObjFile(): %s", toChars());
assert(isexp);
assert(objects);
int n = objects->dim;
for (int i=0; i < n; ++i)
{
DsymbolExp* exp = (DsymbolExp*)objects->data[i];
exp->s->toObjFile(multiobj);
}
}
/* ================================================================== */
void VarDeclaration::toObjFile(int multiobj)
{
Logger::print("VarDeclaration::toObjFile(): %s | %s\n", toChars(), type->toChars());