diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-04-19 22:25:09 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-04-19 22:25:09 +0000 |
commit | 5b665498af732d691b01af59a84cdae092e093e6 (patch) | |
tree | d0a93e2986bb6150bf8bd069f14c78fe411a8704 /llvm/docs/tutorial/LangImpl4.html | |
parent | bc26e1bb8aa1e572bc6249d55cfd7bce7e1d0abe (diff) | |
download | bcm5719-llvm-5b665498af732d691b01af59a84cdae092e093e6.tar.gz bcm5719-llvm-5b665498af732d691b01af59a84cdae092e093e6.zip |
merge of 49966 from branches/ggreif/use-diet to trunk. these are already active API changes
llvm-svn: 49968
Diffstat (limited to 'llvm/docs/tutorial/LangImpl4.html')
-rw-r--r-- | llvm/docs/tutorial/LangImpl4.html | 4 |
1 files changed, 2 insertions, 2 deletions
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()) { |