diff gen/typinf.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 259b031f3d22
children ed0cffe895ec
line wrap: on
line diff
--- a/gen/typinf.cpp	Thu Jul 23 20:34:35 2009 +0200
+++ b/gen/typinf.cpp	Thu Jul 30 15:25:10 2009 +0200
@@ -433,9 +433,9 @@
     {
         const LLType* memty = DtoType(sd->memtype);
 #if DMDV2
-        LLConstant* C = gIR->context().getConstantInt(memty, sd->defaultval->toInteger(), !sd->memtype->isunsigned());
+        LLConstant* C = LLConstantInt::get(memty, sd->defaultval->toInteger(), !sd->memtype->isunsigned());
 #else
-        LLConstant* C = gIR->context().getConstantInt(memty, sd->defaultval, !sd->memtype->isunsigned());
+        LLConstant* C = LLConstantInt::get(memty, sd->defaultval, !sd->memtype->isunsigned());
 #endif
         b.push_void_array(C, sd->memtype, sd);
     }
@@ -734,7 +734,7 @@
 
     // build array
     const LLArrayType* arrTy = LLArrayType::get(tiTy, dim);
-    LLConstant* arrC = llvm::ConstantArray::get(arrTy, arrInits);
+    LLConstant* arrC = LLConstantArray::get(arrTy, arrInits);
 
     RTTIBuilder b(Type::typeinfotypelist);