Mercurial > projects > ldc
changeset 732:6aeaef263289
Fixed tuple fields, thanx downs
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 27 Oct 2008 01:11:41 +0100 |
parents | d63741d00ee3 |
children | cc8ba72c0350 |
files | dmd/declaration.h gen/toobj.cpp |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dmd/declaration.h Sun Oct 26 21:18:24 2008 +0100 +++ b/dmd/declaration.h Mon Oct 27 01:11:41 2008 +0100 @@ -157,6 +157,9 @@ int needThis(); TupleDeclaration *isTupleDeclaration() { return this; } + + // LDC we need this + void toObjFile(int multiobj); // compile to .obj file }; /**************************************************************/
--- a/gen/toobj.cpp Sun Oct 26 21:18:24 2008 +0100 +++ b/gen/toobj.cpp Mon Oct 27 01:11:41 2008 +0100 @@ -911,6 +911,24 @@ /* ================================================================== */ +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());