aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-03-12 14:42:07 -0700
committerEddie Hung <eddie@fpgeh.com>2020-04-02 07:14:08 -0700
commit6d4f01c3fa5b068e7ba55b21ed5f71446fcbc518 (patch)
tree8a925dcb0a9549df5868af2d3328ce32502dbeab /kernel/rtlil.h
parent4a8cecf03e5b1de409b2c8fabf4355157c5e97b5 (diff)
downloadyosys-6d4f01c3fa5b068e7ba55b21ed5f71446fcbc518.tar.gz
yosys-6d4f01c3fa5b068e7ba55b21ed5f71446fcbc518.tar.bz2
yosys-6d4f01c3fa5b068e7ba55b21ed5f71446fcbc518.zip
kernel: separate IdString::put_reference() out to help inlining
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 1283db134..f6ba9a663 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -235,7 +235,10 @@ namespace RTLIL
return;
log_assert(refcount == 0);
-
+ free_reference(idx);
+ }
+ static inline void free_reference(int idx)
+ {
if (yosys_xtrace) {
log("#X# Removed IdString '%s' with index %d.\n", global_id_storage_.at(idx), idx);
log_backtrace("-X- ", yosys_xtrace-1);