diff gen/rttibuilder.cpp @ 1569:755abafbf25d

Push the context through StructType::get. Requires LLVM >= 78258. Also remove old #if's.
author Benjamin Kramer <benny.kra@gmail.com>
date Thu, 06 Aug 2009 01:47:39 +0200
parents d6e8d5db259f
children
line wrap: on
line diff
--- a/gen/rttibuilder.cpp	Thu Aug 06 17:04:36 2009 +0200
+++ b/gen/rttibuilder.cpp	Thu Aug 06 01:47:39 2009 +0200
@@ -142,7 +142,7 @@
 void RTTIBuilder::finalize(IrGlobal* tid)
 {
     // create the inititalizer
-    LLConstant* tiInit = LLConstantStruct::get(&inits[0], inits.size(), false);
+    LLConstant* tiInit = LLConstantStruct::get(gIR->context(), &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 LLConstantStruct::get(&inits[0], inits.size(), false);
+    return LLConstantStruct::get(gIR->context(), &inits[0], inits.size(), false);
 }