diff options
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 21d8f4f6ed..50b35bd8cd 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -237,7 +237,12 @@ public: /// insert point, adding a fall-through branch from the current /// insert block if necessary. It is legal to call this function /// even if there is no current insertion point. - void EmitBlock(llvm::BasicBlock *BB); + /// + /// IsFinished - If true, indicates that the caller has finished + /// emitting branches to the given block and does not expect to emit + /// code into it. This means the block can be ignored if it is + /// unreachable. + void EmitBlock(llvm::BasicBlock *BB, bool IsFinished=false); /// EmitBranch - Emit a branch to the specified basic block from the /// current insert block, taking care to avoid creation of branches |