Move types back to the 2.5 API.
[oota-llvm.git] / lib / VMCore / Function.cpp
index cdf2dd07fa6840a1446b0b3b0773ce2fff031dc3..9fc300043dea4016e8db08056a3a3086f06a2157 100644 (file)
@@ -346,7 +346,7 @@ const FunctionType *Intrinsic::getType(LLVMContext &Context,
 #include "llvm/Intrinsics.gen"
 #undef GET_INTRINSIC_GENERATOR
 
-  return Context.getFunctionType(ResultTy, ArgTys, IsVarArg); 
+  return FunctionType::get(ResultTy, ArgTys, IsVarArg); 
 }
 
 bool Intrinsic::isOverloaded(ID id) {