From 5b665498af732d691b01af59a84cdae092e093e6 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Sat, 19 Apr 2008 22:25:09 +0000 Subject: merge of 49966 from branches/ggreif/use-diet to trunk. these are already active API changes llvm-svn: 49968 --- llvm/docs/tutorial/LangImpl4.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/docs/tutorial/LangImpl4.html') diff --git a/llvm/docs/tutorial/LangImpl4.html b/llvm/docs/tutorial/LangImpl4.html index ddd609210d8..b9562606288 100644 --- a/llvm/docs/tutorial/LangImpl4.html +++ b/llvm/docs/tutorial/LangImpl4.html @@ -913,7 +913,7 @@ Function *PrototypeAST::Codegen() { std::vector<const Type*> Doubles(Args.size(), Type::DoubleTy); FunctionType *FT = FunctionType::get(Type::DoubleTy, Doubles, false); - Function *F = new Function(FT, Function::ExternalLinkage, Name, TheModule); + Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); // If F conflicted, there was already something named 'Name'. If it has a // body, don't allow redefinition or reextern. @@ -956,7 +956,7 @@ Function *FunctionAST::Codegen() { return 0; // Create a new basic block to start insertion into. - BasicBlock *BB = new BasicBlock("entry", TheFunction); + BasicBlock *BB = BasicBlock::Create("entry", TheFunction); Builder.SetInsertPoint(BB); if (Value *RetVal = Body->Codegen()) { -- cgit v1.2.3