Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: YosysHQ/yosys
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bd256966127eec3b600f7c3330289099f3b14938
Choose a base ref
..
head repository: YosysHQ/yosys
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4fa314c0bd0a7f314809e180f196d0974535b0f5
Choose a head ref
Showing with 4 additions and 4 deletions.
  1. +3 −3 kernel/register.cc
  2. +1 −1 kernel/register.h
6 changes: 3 additions & 3 deletions kernel/register.cc
Original file line number Diff line number Diff line change
@@ -108,7 +108,7 @@ Pass::Pass(std::string name, std::string short_help) : pass_name(name), short_he

void Pass::run_register()
{
if (pass_register.count(pass_name) && !overwrite_existing_pass())
if (pass_register.count(pass_name) && !replace_existing_pass())
log_error("Unable to register pass '%s', pass already exists!\n", pass_name.c_str());
pass_register[pass_name] = this;
}
@@ -446,11 +446,11 @@ Frontend::Frontend(std::string name, std::string short_help) :

void Frontend::run_register()
{
if (pass_register.count(pass_name) && !overwrite_existing_pass())
if (pass_register.count(pass_name) && !replace_existing_pass())
log_error("Unable to register pass '%s', pass already exists!\n", pass_name.c_str());
pass_register[pass_name] = this;

if (frontend_register.count(frontend_name) && !overwrite_existing_pass())
if (frontend_register.count(frontend_name) && !replace_existing_pass())
log_error("Unable to register frontend '%s', frontend already exists!\n", frontend_name.c_str());
frontend_register[frontend_name] = this;
}
2 changes: 1 addition & 1 deletion kernel/register.h
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ struct Pass

virtual void on_register();
virtual void on_shutdown();
virtual bool overwrite_existing_pass() const { return false; }
virtual bool replace_existing_pass() const { return false; }
};

struct ScriptPass : Pass