From: Alberto Gonzalez Date: Sat, 4 Apr 2020 21:26:11 +0000 (+0000) Subject: Rename `-duplicate` to `-push-copy`. X-Git-Tag: working-ls180~641^2~24 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0416fe1675665f10aa4379a750e0527494e6b74;p=yosys.git Rename `-duplicate` to `-push-copy`. Co-Authored-By: whitequark --- diff --git a/passes/cmds/design.cc b/passes/cmds/design.cc index 01daa3678..9ee613b1f 100644 --- a/passes/cmds/design.cc +++ b/passes/cmds/design.cc @@ -60,7 +60,7 @@ struct DesignPass : public Pass { log("Push the current design to the stack and then clear the current design.\n"); log("\n"); log("\n"); - log(" design -duplicate\n"); + log(" design -push-copy\n"); log("\n"); log("Push the current design to the stack without clearing the current design.\n"); log("\n"); @@ -106,7 +106,7 @@ struct DesignPass : public Pass { bool reset_mode = false; bool reset_vlog_mode = false; bool push_mode = false; - bool duplicate_mode = false; + bool push_copy_mode = false; bool pop_mode = false; bool import_mode = false; RTLIL::Design *copy_from_design = NULL, *copy_to_design = NULL; @@ -132,9 +132,9 @@ struct DesignPass : public Pass { push_mode = true; continue; } - if (!got_mode && args[argidx] == "-duplicate") { + if (!got_mode && args[argidx] == "-push-copy") { got_mode = true; - duplicate_mode = true; + push_copy_mode = true; continue; } if (!got_mode && args[argidx] == "-pop") { @@ -318,7 +318,7 @@ struct DesignPass : public Pass { } } - if (!save_name.empty() || push_mode || duplicate_mode) + if (!save_name.empty() || push_mode || push_copy_mode) { RTLIL::Design *design_copy = new RTLIL::Design; @@ -332,7 +332,7 @@ struct DesignPass : public Pass { if (saved_designs.count(save_name)) delete saved_designs.at(save_name); - if (push_mode || duplicate_mode) + if (push_mode || push_copy_mode) pushed_designs.push_back(design_copy); else saved_designs[save_name] = design_copy;