comparison gen/aa.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 0e28624814e8
children a8cd9bc1021a
comparison
equal deleted inserted replaced
155:7f92f477ff53 156:ccd07d9f2ce9
56 keytype->getTypeInfo(NULL); 56 keytype->getTypeInfo(NULL);
57 TypeInfoDeclaration* tid = keytype->getTypeInfoDeclaration(); 57 TypeInfoDeclaration* tid = keytype->getTypeInfoDeclaration();
58 assert(tid); 58 assert(tid);
59 DtoResolveDsymbol(Type::typeinfo); 59 DtoResolveDsymbol(Type::typeinfo);
60 DtoForceDeclareDsymbol(tid); 60 DtoForceDeclareDsymbol(tid);
61 assert(tid->irGlobal->value); 61 assert(gIR->irDsymbol[tid].irGlobal->value);
62 return tid->irGlobal->value; 62 return gIR->irDsymbol[tid].irGlobal->value;
63 } 63 }
64 64
65 ///////////////////////////////////////////////////////////////////////////////////// 65 /////////////////////////////////////////////////////////////////////////////////////
66 66
67 DValue* DtoAAIndex(Type* type, DValue* aa, DValue* key) 67 DValue* DtoAAIndex(Type* type, DValue* aa, DValue* key)