diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2008-07-30 12:53:14 +0000 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2008-07-30 12:53:14 +0000 |
commit | e9a393be13282f92f01d1a8f0703005e95b8c4e6 (patch) | |
tree | 12ae7dcb2e1dc309aaeed89349e1b75de3b9667a /include/llvm/BasicBlock.h | |
parent | ed58a97afd33077aae25f35d03e4566ed722d45a (diff) |
Document BasicBlock::Create.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r-- | include/llvm/BasicBlock.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index 47478f2009..6614a93883 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -74,7 +74,9 @@ public: typedef InstListType::iterator iterator; typedef InstListType::const_iterator const_iterator; - // allocate space for exactly zero operands + /// Create - Creates a new BasicBlock. If the Parent parameter is specified, + /// the basic block is automatically inserted at either the end of the + /// function (if InsertBefore is 0), or before the specified basic block. static BasicBlock *Create(const std::string &Name = "", Function *Parent = 0, BasicBlock *InsertBefore = 0) { return new BasicBlock(Name, Parent, InsertBefore); |