Mercurial > projects > ldc
diff gen/rttibuilder.cpp @ 1545:7fcb72d518f6
More factory methods moved to LLVMContext
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 18:09:41 +0200 |
parents | ad7f2f1862d6 |
children | d6e8d5db259f |
line wrap: on
line diff
--- a/gen/rttibuilder.cpp Fri Jul 17 19:23:20 2009 +0200 +++ b/gen/rttibuilder.cpp Wed Jul 15 18:09:41 2009 +0200 @@ -142,7 +142,7 @@ void RTTIBuilder::finalize(IrGlobal* tid) { // create the inititalizer - LLConstant* tiInit = llvm::ConstantStruct::get(&inits[0], inits.size(), false); + LLConstant* tiInit = gIR->context().getConstantStruct(&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 llvm::ConstantStruct::get(&inits[0], inits.size(), false); + return gIR->context().getConstantStruct(&inits[0], inits.size(), false); }