diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-04-06 20:42:52 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-04-06 20:42:52 +0000 |
commit | 984d0b414bc76d3530b9bc55a5a55834ba76c607 (patch) | |
tree | db0ea355957060bfe91f915594da223f6a557784 /lib/CodeGen/CodeGenFunction.cpp | |
parent | 3420766281f1d9626cfa710c000247f9625f26d4 (diff) |
tracking API changes arising from r49277
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index a07eaff305..e1c8d38873 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -38,7 +38,7 @@ llvm::BasicBlock *CodeGenFunction::getBasicBlockForLabel(const LabelStmt *S) { if (BB) return BB; // Create, but don't insert, the new block. - return BB = new llvm::BasicBlock(S->getName()); + return BB = llvm::BasicBlock::Create(S->getName()); } llvm::Constant * @@ -69,7 +69,7 @@ void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) { ParamTypes.begin(), OMD->param_size(), OMD->isVariadic()); - llvm::BasicBlock *EntryBB = new llvm::BasicBlock("entry", CurFn); + llvm::BasicBlock *EntryBB = llvm::BasicBlock::Create("entry", CurFn); // Create a marker to make it easy to insert allocas into the entryblock // later. Don't create this with the builder, because we don't want it @@ -188,7 +188,7 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD) { CurFn->setParamAttrs(llvm::PAListPtr::get(&PAWI, 1)); } - llvm::BasicBlock *EntryBB = new llvm::BasicBlock("entry", CurFn); + llvm::BasicBlock *EntryBB = llvm::BasicBlock::Create("entry", CurFn); // Create a marker to make it easy to insert allocas into the entryblock // later. Don't create this with the builder, because we don't want it @@ -252,7 +252,7 @@ bool CodeGenFunction::isDummyBlock(const llvm::BasicBlock *BB) { void CodeGenFunction::StartBlock(const char *N) { llvm::BasicBlock *BB = Builder.GetInsertBlock(); if (!isDummyBlock(BB)) - EmitBlock(new llvm::BasicBlock(N)); + EmitBlock(llvm::BasicBlock::Create(N)); else BB->setName(N); } |