Mercurial > projects > ldc
comparison gen/arrays.cpp @ 1148:3d1b16dabd25
Eliminated the need for resolve, declare, const-init and define lists to drive code generation.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 27 Mar 2009 21:50:32 +0100 |
parents | 8c73ff5f69e0 |
children | d51b5fa41657 |
comparison
equal
deleted
inserted
replaced
1147:dbe4af57b240 | 1148:3d1b16dabd25 |
---|---|
674 // pass array typeinfo ? | 674 // pass array typeinfo ? |
675 if (useti) { | 675 if (useti) { |
676 Type* t = l->getType(); | 676 Type* t = l->getType(); |
677 LLValue* tival = DtoTypeInfoOf(t); | 677 LLValue* tival = DtoTypeInfoOf(t); |
678 // DtoTypeInfoOf only does declare, not enough in this case :/ | 678 // DtoTypeInfoOf only does declare, not enough in this case :/ |
679 DtoForceConstInitDsymbol(t->vtinfo); | 679 t->vtinfo->codegen(Type::sir); |
680 | 680 |
681 if (Logger::enabled()) | 681 if (Logger::enabled()) |
682 Logger::cout() << "typeinfo decl: " << *tival << '\n'; | 682 Logger::cout() << "typeinfo decl: " << *tival << '\n'; |
683 | 683 |
684 args.push_back(DtoBitCast(tival, fn->getFunctionType()->getParamType(2))); | 684 args.push_back(DtoBitCast(tival, fn->getFunctionType()->getParamType(2))); |