From 45308b578b5eae549e5661d65f73a77d673755bd Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 27 Jul 2009 22:29:26 +0000 Subject: Move ConstantStruct back to 2.5 API. llvm-svn: 77266 --- llvm/lib/Linker/LinkModules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Linker/LinkModules.cpp') 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(RemapOperand(CPS->getOperand(i), ValueMap, Context)); Result = - Context.getConstantStruct(cast(CPS->getType()), Operands); + ConstantStruct::get(cast(CPS->getType()), Operands); } else if (isa(CPV) || isa(CPV)) { Result = const_cast(CPV); } else if (const ConstantVector *CP = dyn_cast(CPV)) { -- cgit v1.2.3