comparison gen/arrays.cpp @ 1535:61f12f4651b5

Don't use llvm::getGlobalContext() anymore
author Benjamin Kramer <benny.kra@gmail.com>
date Mon, 13 Jul 2009 20:16:15 +0200
parents 8ca25bd765a3
children 7fcb72d518f6
comparison
equal deleted inserted replaced
1534:8ca25bd765a3 1535:61f12f4651b5
58 LOG_SCOPE; 58 LOG_SCOPE;
59 59
60 assert(isaPointer(v)); 60 assert(isaPointer(v));
61 const LLType* t = v->getType()->getContainedType(0); 61 const LLType* t = v->getType()->getContainedType(0);
62 62
63 DtoStore(llvm::getGlobalContext().getNullValue(t), v); 63 DtoStore(gIR->context().getNullValue(t), v);
64 } 64 }
65 65
66 ////////////////////////////////////////////////////////////////////////////////////////// 66 //////////////////////////////////////////////////////////////////////////////////////////
67 67
68 void DtoArrayInit(Loc& loc, DValue* array, DValue* value) 68 void DtoArrayInit(Loc& loc, DValue* array, DValue* value)