mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-26 03:11:30 +00:00
Remove .c_str() from stringf parameters
This commit is contained in:
parent
acac60302d
commit
e7f210b817
90 changed files with 773 additions and 773 deletions
|
@ -142,7 +142,7 @@ struct SynthEfinixPass : public ScriptPass
|
|||
if (check_label("begin"))
|
||||
{
|
||||
run("read_verilog -lib +/efinix/cells_sim.v");
|
||||
run(stringf("hierarchy -check %s", help_mode ? "-top <top>" : top_opt.c_str()));
|
||||
run(stringf("hierarchy -check %s", help_mode ? "-top <top>" : top_opt));
|
||||
}
|
||||
|
||||
if (flatten && check_label("flatten", "(unless -noflatten)"))
|
||||
|
@ -225,13 +225,13 @@ struct SynthEfinixPass : public ScriptPass
|
|||
if (check_label("edif"))
|
||||
{
|
||||
if (!edif_file.empty() || help_mode)
|
||||
run(stringf("write_edif %s", help_mode ? "<file-name>" : edif_file.c_str()));
|
||||
run(stringf("write_edif %s", help_mode ? "<file-name>" : edif_file));
|
||||
}
|
||||
|
||||
if (check_label("json"))
|
||||
{
|
||||
if (!json_file.empty() || help_mode)
|
||||
run(stringf("write_json %s", help_mode ? "<file-name>" : json_file.c_str()));
|
||||
run(stringf("write_json %s", help_mode ? "<file-name>" : json_file));
|
||||
}
|
||||
}
|
||||
} SynthEfinixPass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue