kernel: separate IdString::put_reference() out to help inlining

This commit is contained in:
Eddie Hung 2020-03-12 14:42:07 -07:00
parent 4a8cecf03e
commit 6d4f01c3fa
1 changed files with 4 additions and 1 deletions

View File

@ -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);