comparison gen/arrays.cpp @ 156:ccd07d9f2ce9 trunk

[svn r172] moving all IR state previously stored in Dsymbol into IrDsymbol and a Dsymbol->IrDsymbol map
author ChristianK
date Thu, 01 May 2008 13:05:53 +0200
parents a27941d00351
children 5c17f81fc1c1
comparison
equal deleted inserted replaced
155:7f92f477ff53 156:ccd07d9f2ce9
671 671
672 // pass element typeinfo ? 672 // pass element typeinfo ?
673 if (useti) { 673 if (useti) {
674 TypeInfoDeclaration* ti = DtoDType(l->getType())->next->getTypeInfoDeclaration(); 674 TypeInfoDeclaration* ti = DtoDType(l->getType())->next->getTypeInfoDeclaration();
675 DtoForceConstInitDsymbol(ti); 675 DtoForceConstInitDsymbol(ti);
676 Logger::cout() << "typeinfo decl: " << *ti->getIrValue() << '\n'; 676 Logger::cout() << "typeinfo decl: " << *gIR->irDsymbol[ti].getIrValue() << '\n';
677 677
678 pt = fn->getFunctionType()->getParamType(2); 678 pt = fn->getFunctionType()->getParamType(2);
679 args.push_back(DtoBitCast(ti->getIrValue(), pt)); 679 args.push_back(DtoBitCast(gIR->irDsymbol[ti].getIrValue(), pt));
680 } 680 }
681 681
682 return gIR->ir->CreateCall(fn, args.begin(), args.end(), "tmp"); 682 return gIR->ir->CreateCall(fn, args.begin(), args.end(), "tmp");
683 } 683 }
684 684