Fixed eval_select_op() api

This commit is contained in:
Clifford Wolf 2015-02-08 19:06:16 +01:00
parent 09ee65a050
commit bcd8a2fc56
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ struct Backend : Pass
// implemented in passes/cmds/select.cc
extern void handle_extra_select_args(Pass *pass, std::vector<std::string> args, size_t argidx, size_t args_size, RTLIL::Design *design);
extern RTLIL::Selection eval_select_args(const vector<string> &args, RTLIL::Design *design);
extern void eval_select_op(vector<RTLIL::Selection> &work, string &op, RTLIL::Design *design);
extern void eval_select_op(vector<RTLIL::Selection> &work, const string &op, RTLIL::Design *design);
extern std::map<std::string, Pass*> pass_register;
extern std::map<std::string, Frontend*> frontend_register;

View File

@ -839,7 +839,7 @@ RTLIL::Selection eval_select_args(const vector<string> &args, RTLIL::Design *des
}
// extern decl. in register.h
void eval_select_op(vector<RTLIL::Selection> &work, string &op, RTLIL::Design *design)
void eval_select_op(vector<RTLIL::Selection> &work, const string &op, RTLIL::Design *design)
{
work_stack.swap(work);
select_stmt(design, op);