diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-11-11 04:12:31 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-11-11 04:12:31 +0000 |
commit | f84dcda7e2ab2f6d5be5a8c52d22ef4c442dd762 (patch) | |
tree | d781d769cbe670c52b8f7f8f5cfff7827451f591 /lib/CodeGen/CodeGenFunction.cpp | |
parent | b5cac862e9d1de85c85159d0ef4ab8482441e660 (diff) |
Remove CodeGenFunction::StartBlock.
- Was confusing and only used in one small part of the code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index f66c6ea861..427f6457bb 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -163,16 +163,6 @@ bool CodeGenFunction::isDummyBlock(const llvm::BasicBlock *BB) { return false; } -/// StartBlock - Start new block named N. If insert block is a dummy block -/// then reuse it. -void CodeGenFunction::StartBlock(const char *N) { - llvm::BasicBlock *BB = Builder.GetInsertBlock(); - if (!isDummyBlock(BB)) - EmitBlock(createBasicBlock(N)); - else - BB->setName(N); -} - /// getCGRecordLayout - Return record layout info. const CGRecordLayout *CodeGenFunction::getCGRecordLayout(CodeGenTypes &CGT, QualType Ty) { |