diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-28 18:33:04 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-28 18:33:04 +0000 |
commit | 7db6d838aad4083fe86d7bf703a75fe6e8a17856 (patch) | |
tree | e347d990ae8a8add05b6d39f82e5c30956d24c10 /lib/CodeGen/CGExprConstant.cpp | |
parent | fb84664349ca6f37f5ec4df440f6c362cca62470 (diff) |
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 6a14cae5e8..9976677c7b 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -438,7 +438,7 @@ public: return llvm::ConstantStruct::get(SType, Elts); } - return VMContext.getConstantArray(AType, Elts); + return llvm::ConstantArray::get(AType, Elts); } void InsertBitfieldIntoStruct(std::vector<llvm::Constant*>& Elts, @@ -610,7 +610,7 @@ public: InsertBitfieldIntoStruct(Elts, curField, ILE->getInit(0)); const llvm::ArrayType *RetTy = VMContext.getArrayType(NV->getType(), NumElts); - return VMContext.getConstantArray(RetTy, Elts); + return llvm::ConstantArray::get(RetTy, Elts); } llvm::Constant *InitElem; @@ -687,7 +687,7 @@ public: // This must be a string initializing an array in a static initializer. // Don't emit it as the address of the string, emit the string data itself // as an inline array. - return VMContext.getConstantArray(CGM.GetStringForStringLiteral(E), false); + return llvm::ConstantArray::get(CGM.GetStringForStringLiteral(E), false); } llvm::Constant *VisitObjCEncodeExpr(ObjCEncodeExpr *E) { @@ -701,7 +701,7 @@ public: // Resize the string to the right size, adding zeros at the end, or // truncating as needed. Str.resize(CAT->getSize().getZExtValue(), '\0'); - return VMContext.getConstantArray(Str, false); + return llvm::ConstantArray::get(Str, false); } llvm::Constant *VisitUnaryExtension(const UnaryOperator *E) { |