mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 19:05:52 +00:00
Use selection helpers
Catch more uses of selection constructor without assigning a design.
This commit is contained in:
parent
25bbc6effc
commit
9484d169c8
22 changed files with 84 additions and 78 deletions
|
@ -950,8 +950,8 @@ struct VizPass : public Pass {
|
|||
auto type = arg == "-g" || arg == "-G" ? VizConfig::TYPE_G :
|
||||
arg == "-u" || arg == "-U" ? VizConfig::TYPE_U :
|
||||
arg == "-x" || arg == "-X" ? VizConfig::TYPE_X : VizConfig::TYPE_S;
|
||||
config.groups.push_back({type, design->selection_stack.back()});
|
||||
design->selection_stack.pop_back();
|
||||
config.groups.push_back({type, design->selection()});
|
||||
design->pop_selection();
|
||||
continue;
|
||||
}
|
||||
if (arg == "-0" || arg == "-1" || arg == "-2" || arg == "-3" || arg == "-4" ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue