diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-06 21:33:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-06 21:33:15 +0000 |
commit | 9ed7aef651c798dd08039ba1fa68165edd0b5567 (patch) | |
tree | 107688ce7579e4f1ca2d2e0c5d48f29b68179295 /llvm/lib/VMCore/BasicBlock.cpp | |
parent | 809375647d03a4d89c1f3327cc68e68a1c7e7e84 (diff) | |
download | bcm5719-llvm-9ed7aef651c798dd08039ba1fa68165edd0b5567.tar.gz bcm5719-llvm-9ed7aef651c798dd08039ba1fa68165edd0b5567.zip |
Move code out of header files into .cpp files to make future changes easier
llvm-svn: 3605
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/VMCore/BasicBlock.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index d0859f87432..4271f32e7ac 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/lib/VMCore/BasicBlock.cpp @@ -48,6 +48,9 @@ iplist<Instruction> &ilist_traits<Instruction>::getList(BasicBlock *BB) { template SymbolTableListTraits<Instruction, BasicBlock, Function>; +// 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... @@ -62,6 +65,10 @@ BasicBlock::~BasicBlock() { InstList.clear(); } +void BasicBlock::setParent(Function *parent) { + InstList.setParent(parent); +} + // Specialize setName to take care of symbol table majik void BasicBlock::setName(const std::string &name, SymbolTable *ST) { Function *P; |