Mercurial > projects > ldc
diff gen/rttibuilder.cpp @ 1554:d6e8d5db259f
LLVMContext changes up to r77366
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 30 Jul 2009 15:25:10 +0200 |
parents | 7fcb72d518f6 |
children | 755abafbf25d |
line wrap: on
line diff
--- a/gen/rttibuilder.cpp Thu Jul 23 20:34:35 2009 +0200 +++ b/gen/rttibuilder.cpp Thu Jul 30 15:25:10 2009 +0200 @@ -142,7 +142,7 @@ void RTTIBuilder::finalize(IrGlobal* tid) { // create the inititalizer - LLConstant* tiInit = gIR->context().getConstantStruct(&inits[0], inits.size(), false); + LLConstant* tiInit = LLConstantStruct::get(&inits[0], inits.size(), false); // refine global type llvm::cast<llvm::OpaqueType>(tid->type.get())->refineAbstractTypeTo(tiInit->getType()); @@ -154,5 +154,5 @@ LLConstant* RTTIBuilder::get_constant() { // just return the inititalizer - return gIR->context().getConstantStruct(&inits[0], inits.size(), false); + return LLConstantStruct::get(&inits[0], inits.size(), false); }