diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-08-10 11:41:09 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-08-11 11:39:46 +0200 |
commit | 8222c5735e3b31fc2a7507abe607bb5aa9f863de (patch) | |
tree | 0967a4d165d7cd09386533d0b89a0e06bf413fd0 /kernel/yosys.cc | |
parent | 6995914f3f55fc0f3d1160c7f45273b82eb923ce (diff) | |
download | yosys-8222c5735e3b31fc2a7507abe607bb5aa9f863de.tar.gz yosys-8222c5735e3b31fc2a7507abe607bb5aa9f863de.tar.bz2 yosys-8222c5735e3b31fc2a7507abe607bb5aa9f863de.zip |
More improvements and cleanups in IdString subsystem
- better use of "inline" keyword
- deprecate "sticky" IDs feature
- improve handling of empty ID
- add move constructor
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r-- | kernel/yosys.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 5a53f90fd..fc9bd96fe 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -510,10 +510,6 @@ void yosys_setup() if(already_setup) return; already_setup = true; - // if there are already IdString objects then we have a global initialization order bug - IdString empty_id; - log_assert(empty_id.index_ == 0); - IdString::get_reference(empty_id.index_); #ifdef WITH_PYTHON PyImport_AppendInittab((char*)"libyosys", INIT_MODULE); @@ -575,9 +571,6 @@ void yosys_shutdown() #ifdef WITH_PYTHON Py_Finalize(); #endif - - IdString empty_id; - IdString::put_reference(empty_id.index_); } RTLIL::IdString new_id(std::string file, int line, std::string func) |