mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-07 06:33:24 +00:00
synthprop: Use override keyword
`formatted_help()` introduced the override keyword, which means that the other two methods that were marked as virtual instead raised a warning about inconsistent use of override. This fixes that by bringing the synthprop (more) in line with the rest of the code-base.
This commit is contained in:
parent
b9f0fabff0
commit
45225d1391
1 changed files with 2 additions and 2 deletions
|
@ -187,7 +187,7 @@ struct SyntProperties : public Pass {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void help()
|
void help() override
|
||||||
{
|
{
|
||||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||||
log("\n");
|
log("\n");
|
||||||
|
@ -216,7 +216,7 @@ struct SyntProperties : public Pass {
|
||||||
log("\n");
|
log("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(std::vector<std::string> args, RTLIL::Design* design)
|
void execute(std::vector<std::string> args, RTLIL::Design* design) override
|
||||||
{
|
{
|
||||||
log_header(design, "Executing SYNTHPROP pass.\n");
|
log_header(design, "Executing SYNTHPROP pass.\n");
|
||||||
SynthPropWorker worker(design);
|
SynthPropWorker worker(design);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue