diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-27 22:29:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-27 22:29:26 +0000 |
commit | 8fa3338ed2400c1352b137613d2c2c70d1ead695 (patch) | |
tree | 4e170be384fe7fcc54a6f686a6087729fc52ac0c /lib/Transforms/IPO | |
parent | f08583b5323801b001175c2a62ac3e3d258723ac (diff) | |
download | external_llvm-8fa3338ed2400c1352b137613d2c2c70d1ead695.zip external_llvm-8fa3338ed2400c1352b137613d2c2c70d1ead695.tar.gz external_llvm-8fa3338ed2400c1352b137613d2c2c70d1ead695.tar.bz2 |
Move ConstantStruct back to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/GlobalOpt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index c7208bc..2989e28 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp @@ -1962,7 +1962,7 @@ static GlobalVariable *InstallGlobalCtors(GlobalVariable *GCL, CSVals[1] = Context.getNullValue(PFTy); CSVals[0] = ConstantInt::get(Type::Int32Ty, 2147483647); } - CAList.push_back(Context.getConstantStruct(CSVals)); + CAList.push_back(ConstantStruct::get(CSVals)); } // Create the array initializer. @@ -2070,7 +2070,7 @@ static Constant *EvaluateStoreInto(Constant *Init, Constant *Val, Elts[Idx] = EvaluateStoreInto(Elts[Idx], Val, Addr, OpNo+1, Context); // Return the modified struct. - return Context.getConstantStruct(&Elts[0], Elts.size(), STy->isPacked()); + return ConstantStruct::get(&Elts[0], Elts.size(), STy->isPacked()); } else { ConstantInt *CI = cast<ConstantInt>(Addr->getOperand(OpNo)); const ArrayType *ATy = cast<ArrayType>(Init->getType()); |