mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 20:33:14 +01:00
Fixed tuple fields, thanx downs
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
/**************************************************************/
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user