LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
codegen.hxx
Go to the documentation of this file.
1 
6 #ifndef TARGET_CODEGEN_HXX
7 # define TARGET_CODEGEN_HXX
8 
9 # include <target/codegen.hh>
10 
11 namespace target
12 {
13 
14  // Construct a Codegen.
15  inline
16  Codegen::Codegen(bool rule_trace_p)
17  : frame_(nullptr)
18  , rule_trace_p_(rule_trace_p)
19  {
20  }
21 
22  inline
25  {
26  return *frame_;
27  }
28 
29  inline
32  {
33  return instrs_;
34  }
35 
36  inline
37  void
39  {
40  instrs_.push_back(instr);
41  }
42 
43  inline
44  void
46  {
47  instrs_.splice(instrs_.end(), instrs);
48  }
49 
50 } // namespace target
51 
52 #endif // !TARGET_CODEGEN_HXX