Move types back to the 2.5 API.
[oota-llvm.git] / docs / tutorial / LangImpl6.html
index 5a553b7b8a1928319f80507962542d56d94ea324..0f714b385ad6525396568c6fcd3c48a261b13815 100644 (file)
@@ -1576,7 +1576,7 @@ Value *ForExprAST::Codegen() {
 Function *PrototypeAST::Codegen() {
   // Make the function type:  double(double,double) etc.
   std::vector<const Type*> Doubles(Args.size(), Type::DoubleTy);
-  FunctionType *FT = getGlobalContext().getFunctionType(Type::DoubleTy, Doubles, false);
+  FunctionType *FT = FunctionType::get(Type::DoubleTy, Doubles, false);
   
   Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule);