aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-03-12 12:54:30 -0700
committerEddie Hung <eddie@fpgeh.com>2020-04-02 07:14:08 -0700
commit164dd0f6b298e416bd1ef882f21a4d0b5acfd039 (patch)
treeeb57ca590143925cdc5cc86a2f0da131354529ee /kernel/rtlil.cc
parent37f42fe102e329793b884a47321423062eedfce7 (diff)
downloadyosys-164dd0f6b298e416bd1ef882f21a4d0b5acfd039.tar.gz
yosys-164dd0f6b298e416bd1ef882f21a4d0b5acfd039.tar.bz2
yosys-164dd0f6b298e416bd1ef882f21a4d0b5acfd039.zip
kernel: Use constids.inc for global/constant IdStrings
Diffstat (limited to 'kernel/rtlil.cc')
-rw-r--r--kernel/rtlil.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index d04524387..83e324535 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -41,12 +41,10 @@ int RTLIL::IdString::last_created_idx_[8];
int RTLIL::IdString::last_created_idx_ptr_;
#endif
-IdString RTLIL::ID::A;
-IdString RTLIL::ID::B;
-IdString RTLIL::ID::Y;
-IdString RTLIL::ID::keep;
-IdString RTLIL::ID::whitebox;
-IdString RTLIL::ID::blackbox;
+#define X(_id) IdString RTLIL::ID::_id;
+#include "constids.inc"
+#undef X
+
dict<std::string, std::string> RTLIL::constpad;
RTLIL::Const::Const()