summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-07-30 12:53:14 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-07-30 12:53:14 +0000
commitbe31571ca5f520e20d2f08165be3545a1c811a8d (patch)
treeb7077967b4d6a9a346a97a6ce16c71c26a97760b
parentca4ffaabcd8aef98715cc64daf8163a787dce8c2 (diff)
downloadbcm5719-llvm-be31571ca5f520e20d2f08165be3545a1c811a8d.tar.gz
bcm5719-llvm-be31571ca5f520e20d2f08165be3545a1c811a8d.zip
Document BasicBlock::Create.
llvm-svn: 54210
-rw-r--r--llvm/include/llvm/BasicBlock.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/BasicBlock.h b/llvm/include/llvm/BasicBlock.h
index 47478f2009a..6614a938830 100644
--- a/llvm/include/llvm/BasicBlock.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud