mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 03:15:50 +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
|
@ -802,8 +802,8 @@ struct ShowPass : public Pass {
|
|||
std::pair<std::string, RTLIL::Selection> data;
|
||||
data.first = args[++argidx], argidx++;
|
||||
handle_extra_select_args(this, args, argidx, argidx+1, design);
|
||||
data.second = design->selection_stack.back();
|
||||
design->selection_stack.pop_back();
|
||||
data.second = design->selection();
|
||||
design->pop_selection();
|
||||
color_selections.push_back(data);
|
||||
continue;
|
||||
}
|
||||
|
@ -811,8 +811,8 @@ struct ShowPass : public Pass {
|
|||
std::pair<std::string, RTLIL::Selection> data;
|
||||
data.first = args[++argidx], argidx++;
|
||||
handle_extra_select_args(this, args, argidx, argidx+1, design);
|
||||
data.second = design->selection_stack.back();
|
||||
design->selection_stack.pop_back();
|
||||
data.second = design->selection();
|
||||
design->pop_selection();
|
||||
label_selections.push_back(data);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue