diff options
Diffstat (limited to 'src/mem/slicc/ast/MachineAST.cc')
-rw-r--r-- | src/mem/slicc/ast/MachineAST.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mem/slicc/ast/MachineAST.cc b/src/mem/slicc/ast/MachineAST.cc index 68acb0070..2096db591 100644 --- a/src/mem/slicc/ast/MachineAST.cc +++ b/src/mem/slicc/ast/MachineAST.cc @@ -28,11 +28,11 @@ */ /* - * MachineAST.C + * MachineAST.cc * - * Description: See MachineAST.h + * Description: See MachineAST.hh * - * $Id: MachineAST.C,v 3.1 2003/03/17 01:54:25 xu Exp $ + * $Id: MachineAST.cc,v 3.1 2003/03/17 01:54:25 xu Exp $ * */ @@ -41,13 +41,17 @@ MachineAST::MachineAST(string* ident_ptr, PairListAST* pairs_ptr, + Vector<TypeFieldAST*>* config_params_ptr, + std::vector<std::string*>* latency_vector, DeclListAST* decl_list_ptr) : DeclAST(pairs_ptr) { m_ident_ptr = ident_ptr; m_pairs_ptr = pairs_ptr; + m_config_params_ptr = config_params_ptr; m_decl_list_ptr = decl_list_ptr; + m_latency_vector = latency_vector; } MachineAST::~MachineAST() @@ -65,7 +69,7 @@ void MachineAST::generate() g_sym_table.pushFrame(); // Create a new machine - machine_ptr = new StateMachine(*m_ident_ptr, getLocation(), getPairs()); + machine_ptr = new StateMachine(*m_ident_ptr, getLocation(), getPairs(), m_latency_vector); g_sym_table.newCurrentMachine(machine_ptr); // Generate code for all the internal decls |