summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.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
commit45308b578b5eae549e5661d65f73a77d673755bd (patch)
tree378dfd215a15edca2cedd8c0b3b1e876bbc79426 /llvm/lib/Linker/LinkModules.cpp
parent31d9254f7a09091996595a76d58cf487eda575b7 (diff)
downloadbcm5719-llvm-45308b578b5eae549e5661d65f73a77d673755bd.tar.gz
bcm5719-llvm-45308b578b5eae549e5661d65f73a77d673755bd.zip
Move ConstantStruct back to 2.5 API.
llvm-svn: 77266
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 15fe2224e66..a2009ec4665 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -376,7 +376,7 @@ static Value *RemapOperand(const Value *In,
Operands[i] =cast<Constant>(RemapOperand(CPS->getOperand(i), ValueMap,
Context));
Result =
- Context.getConstantStruct(cast<StructType>(CPS->getType()), Operands);
+ ConstantStruct::get(cast<StructType>(CPS->getType()), Operands);
} else if (isa<ConstantPointerNull>(CPV) || isa<UndefValue>(CPV)) {
Result = const_cast<Constant*>(CPV);
} else if (const ConstantVector *CP = dyn_cast<ConstantVector>(CPV)) {
OpenPOWER on IntegriCloud