aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint/ExtractFunction.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-27 22:29:26 +0000
committerOwen Anderson <resistor@mac.com>2009-07-27 22:29:26 +0000
commit8fa3338ed2400c1352b137613d2c2c70d1ead695 (patch)
tree4e170be384fe7fcc54a6f686a6087729fc52ac0c /tools/bugpoint/ExtractFunction.cpp
parentf08583b5323801b001175c2a62ac3e3d258723ac (diff)
downloadexternal_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 'tools/bugpoint/ExtractFunction.cpp')
-rw-r--r--tools/bugpoint/ExtractFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp
index 41704f9..145942c 100644
--- a/tools/bugpoint/ExtractFunction.cpp
+++ b/tools/bugpoint/ExtractFunction.cpp
@@ -187,7 +187,7 @@ static Constant *GetTorInit(std::vector<std::pair<Function*, int> > &TorList) {
std::vector<Constant*> Elts;
Elts.push_back(ConstantInt::get(Type::Int32Ty, TorList[i].second));
Elts.push_back(TorList[i].first);
- ArrayElts.push_back(Context.getConstantStruct(Elts));
+ ArrayElts.push_back(ConstantStruct::get(Elts));
}
return Context.getConstantArray(Context.getArrayType(ArrayElts[0]->getType(),
ArrayElts.size()),