Update for LLVM API change.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77012 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index 803df31..756cca7 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -211,7 +211,7 @@
   for (CtorList::const_iterator I = Fns.begin(), E = Fns.end(); I != E; ++I) {
     std::vector<llvm::Constant*> S;
     S.push_back(
-      VMContext.getConstantInt(llvm::Type::Int32Ty, I->second, false));
+      llvm::ConstantInt::get(llvm::Type::Int32Ty, I->second, false));
     S.push_back(VMContext.getConstantExprBitCast(I->first, CtorPFTy));
     Ctors.push_back(VMContext.getConstantStruct(CtorStructTy, S));
   }
@@ -505,7 +505,7 @@
     VMContext.getConstantExprBitCast(GV, SBP),
     VMContext.getConstantExprBitCast(annoGV, SBP),
     VMContext.getConstantExprBitCast(unitGV, SBP),
-    VMContext.getConstantInt(llvm::Type::Int32Ty, LineNo)
+    llvm::ConstantInt::get(llvm::Type::Int32Ty, LineNo)
   };
   return VMContext.getConstantStruct(Fields, 4, false);
 }
@@ -1294,8 +1294,8 @@
   NextField = *Field++;
   const llvm::Type *Ty = getTypes().ConvertType(getContext().UnsignedIntTy);
   appendFieldAndPadding(*this, Fields, CurField, NextField,
-                        isUTF16 ? VMContext.getConstantInt(Ty, 0x07d0)
-                                : VMContext.getConstantInt(Ty, 0x07C8), 
+                        isUTF16 ? llvm::ConstantInt::get(Ty, 0x07d0)
+                                : llvm::ConstantInt::get(Ty, 0x07C8), 
                         CFRD, STy);
     
   // String pointer.
@@ -1339,7 +1339,7 @@
   NextField = 0;
   Ty = getTypes().ConvertType(getContext().LongTy);
   appendFieldAndPadding(*this, Fields, CurField, NextField,
-                        VMContext.getConstantInt(Ty, StringLength), CFRD, STy);
+                        llvm::ConstantInt::get(Ty, StringLength), CFRD, STy);
   
   // The struct.
   C = VMContext.getConstantStruct(STy, Fields);