LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
basic-block.hxx
Go to the documentation of this file.
1 
6 #ifndef CANON_BASIC_BLOCK_HXX
7 # define CANON_BASIC_BLOCK_HXX
8 
9 # include <canon/basic-block.hh>
10 
11 namespace canon
12 {
13 
14  inline
15  BasicBlock::BasicBlock(tree_list_type::iterator begin,
16  tree_list_type::iterator end)
17  : trees_(tree_list_type(begin, end))
18  {}
19 
20  inline const BasicBlock*
22  {
23  trees_.push_back(tree);
24  return this;
25  }
26 
29  {
30  return trees_;
31  }
32 
33  inline std::ostream&
34  operator<<(std::ostream& ostr, const BasicBlock& block)
35  {
36  return block.dump(ostr);
37  }
38 
39 }
40 
41 #endif // !CANON_BASIC_BLOCK_HXX