summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-04-06 20:42:52 +0000
committerGabor Greif <ggreif@gmail.com>2008-04-06 20:42:52 +0000
commitd36afd7d65a53dba37285b8bc7288cb130ef1f25 (patch)
treedce9132b3bfc167b4fd32598f79aec90129ab18d /clang/lib/CodeGen/CodeGenFunction.cpp
parente9ecc68d8f7cce18cfce7e9806f924fc65aa4281 (diff)
downloadbcm5719-llvm-d36afd7d65a53dba37285b8bc7288cb130ef1f25.tar.gz
bcm5719-llvm-d36afd7d65a53dba37285b8bc7288cb130ef1f25.zip
tracking API changes arising from r49277
llvm-svn: 49279
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index a07eaff305d..e1c8d38873d 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud