diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-11-11 09:41:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-11-11 09:41:28 +0000 |
commit | d57a871339c7c98d58d93108b806f59bdf4e13e2 (patch) | |
tree | 965779772ee3189b5eba2360fd14a34bfef3d658 /lib/CodeGen/CodeGenFunction.h | |
parent | f1d93600000bb516cdd499905f699b289fd73ada (diff) |
Add CodeGenFunction::EmitBranch.
- Emits an unconditional branch, with extra logic to avoid generating
spurious branches out of dummy blocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 04d64e4ee1..d482086e1a 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -226,6 +226,11 @@ public: 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. |