Add CodeGenFunction::EmitBranch.
- Emits an unconditional branch, with extra logic to avoid generating
spurious branches out of dummy blocks.
llvm-svn: 59037
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 04d64e4..d482086 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -226,6 +226,11 @@
void EmitBlock(llvm::BasicBlock *BB);
+ /// EmitBranch - Emit a branch to the specified basic block from the
+ /// current insert block, taking care to avoid creation of branches
+ /// from dummy blocks.
+ void EmitBranch(llvm::BasicBlock *Block);
+
/// EmitDummyBlock - Emit a new block which will never be branched
/// to. This is used to satisfy the invariant that codegen always
/// has an active unterminated block to dump code into.