-// BasicBlock ctor - If the function parameter is specified, the basic block is
-// automatically inserted at the end of the function.
-//
-BasicBlock::BasicBlock(const std::string &name, Function *Parent)
- : Value(Type::LabelTy, Value::BasicBlockVal, name) {
- // Initialize the instlist...
- InstList.setItemParent(this);
-
- // Make sure that we get added to a function
- LeakDetector::addGarbageObject(this);
-
- if (Parent)
- Parent->getBasicBlockList().push_back(this);
-}
-
-/// BasicBlock ctor - If the InsertBefore parameter is specified, the basic
-/// block is automatically inserted right before the specified block.
-///
-BasicBlock::BasicBlock(const std::string &Name, BasicBlock *InsertBefore)
- : Value(Type::LabelTy, Value::BasicBlockVal, Name) {
+BasicBlock::BasicBlock(const std::string &Name, Function *Parent,
+ BasicBlock *InsertBefore)
+ : Value(Type::LabelTy, Value::BasicBlockVal) {