From bcd8a2fc567e0bbc1b04467ac7a3b32ed332f7f3 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 8 Feb 2015 19:06:16 +0100 Subject: [PATCH] Fixed eval_select_op() api --- kernel/register.h | 2 +- passes/cmds/select.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2