mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-20 22:25:49 +00:00
twine: start indexable colony with integer indices including preallocated twines
This commit is contained in:
parent
8ab96a4285
commit
015ab4e45b
7 changed files with 482 additions and 696 deletions
|
|
@ -3302,7 +3302,7 @@ inline RTLIL::ModuleNameMasq::operator RTLIL::IdString() const {
|
|||
inline RTLIL::ModuleNameMasq::operator TwineRef() const {
|
||||
const RTLIL::Module *m = reinterpret_cast<const RTLIL::Module*>(
|
||||
reinterpret_cast<const char*>(this) - offsetof(RTLIL::Module, name));
|
||||
return m->design ? m->design->obj_src_id(m) : nullptr;
|
||||
return m->design ? m->design->obj_src_id(m) : Twine::Null;
|
||||
}
|
||||
|
||||
// inline RTLIL::ModuleNameMasq& RTLIL::ModuleNameMasq::operator=(RTLIL::IdString id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue