mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-20 07:36:39 +00:00
rtlil: fix erase
This commit is contained in:
parent
b13d092cfa
commit
d04d8104c7
|
@ -1786,11 +1786,13 @@ public:
|
|||
throw std::out_of_range("FakeParams::size()");
|
||||
}
|
||||
}
|
||||
bool empty() const {
|
||||
return !size();
|
||||
}
|
||||
bool empty() const { return !size(); }
|
||||
// The need for this function implies setPort will be used on incompat types
|
||||
void erase(const RTLIL::IdString& paramname) const { (void)paramname; }
|
||||
void erase(const RTLIL::IdString ¶mname) const
|
||||
{
|
||||
if (parent->is_legacy())
|
||||
parent->legacy->parameters.erase(paramname);
|
||||
}
|
||||
// The need for this function implies setPort will be used on incompat types
|
||||
void clear() const {}
|
||||
// AAA
|
||||
|
|
Loading…
Reference in a new issue