From: Clifford Wolf Date: Sun, 8 Feb 2015 18:06:16 +0000 (+0100) Subject: Fixed eval_select_op() api X-Git-Tag: yosys-0.5~8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bcd8a2fc567e0bbc1b04467ac7a3b32ed332f7f3;p=yosys.git Fixed eval_select_op() api --- diff --git a/kernel/register.h b/kernel/register.h index 9b247172e..71ab6ea6e 100644 --- a/kernel/register.h +++ b/kernel/register.h @@ -101,7 +101,7 @@ struct Backend : Pass // implemented in passes/cmds/select.cc extern void handle_extra_select_args(Pass *pass, std::vector args, size_t argidx, size_t args_size, RTLIL::Design *design); extern RTLIL::Selection eval_select_args(const vector &args, RTLIL::Design *design); -extern void eval_select_op(vector &work, string &op, RTLIL::Design *design); +extern void eval_select_op(vector &work, const string &op, RTLIL::Design *design); extern std::map pass_register; extern std::map frontend_register; diff --git a/passes/cmds/select.cc b/passes/cmds/select.cc index f8cfa9ced..247765f0d 100644 --- a/passes/cmds/select.cc +++ b/passes/cmds/select.cc @@ -839,7 +839,7 @@ RTLIL::Selection eval_select_args(const vector &args, RTLIL::Design *des } // extern decl. in register.h -void eval_select_op(vector &work, string &op, RTLIL::Design *design) +void eval_select_op(vector &work, const string &op, RTLIL::Design *design) { work_stack.swap(work); select_stmt(design, op);