diff ir/irstruct.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 1d5c3354b3c2
line wrap: on
line diff
--- a/ir/irstruct.cpp	Thu Jul 23 20:34:35 2009 +0200
+++ b/ir/irstruct.cpp	Thu Jul 30 15:25:10 2009 +0200
@@ -195,7 +195,7 @@
     }
 
     // build constant struct
-    llvm::Constant* definit = gIR->context().getConstantStruct(constants, packed);
+    llvm::Constant* definit = LLConstantStruct::get(constants, packed);
 #if 0
     IF_LOG Logger::cout() << "final default initializer: " << *definit << std::endl;
 #endif
@@ -384,7 +384,7 @@
 
     // build constant
     assert(!constants.empty());
-    llvm::Constant* c = gIR->context().getConstantStruct(&constants[0], constants.size(), packed);
+    llvm::Constant* c = LLConstantStruct::get(&constants[0], constants.size(), packed);
     IF_LOG Logger::cout() << "final struct initializer: " << *c << std::endl;
     return c;
 }