mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-23 14:11:28 +00:00
fix YOSYS_XTRACE_GET_PUT
This commit is contained in:
parent
50bfb5c5c9
commit
1ee4fc9d27
2 changed files with 2 additions and 6 deletions
|
|
@ -130,7 +130,7 @@ int RTLIL::IdString::really_insert(std::string_view p, std::unordered_map<std::s
|
||||||
|
|
||||||
#ifdef YOSYS_XTRACE_GET_PUT
|
#ifdef YOSYS_XTRACE_GET_PUT
|
||||||
if (yosys_xtrace)
|
if (yosys_xtrace)
|
||||||
log("#X# GET-BY-NAME '%s' (index %d, refcount %u)\n", global_id_storage_.at(idx), idx, refcount(idx));
|
log("#X# GET-BY-NAME '%s' (index %d, refcount %u)\n", global_id_storage_.at(idx).buf, idx, refcount(idx));
|
||||||
#endif
|
#endif
|
||||||
return idx;
|
return idx;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -135,10 +135,6 @@ struct RTLIL::IdString
|
||||||
std::string_view str_view() const { return {buf, static_cast<size_t>(size)}; }
|
std::string_view str_view() const { return {buf, static_cast<size_t>(size)}; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#undef YOSYS_XTRACE_GET_PUT
|
|
||||||
#undef YOSYS_SORT_ID_FREE_LIST
|
|
||||||
#undef YOSYS_NO_IDS_REFCNT
|
|
||||||
|
|
||||||
// the global id string cache
|
// the global id string cache
|
||||||
|
|
||||||
static bool destruct_guard_ok; // POD, will be initialized to zero
|
static bool destruct_guard_ok; // POD, will be initialized to zero
|
||||||
|
|
@ -178,7 +174,7 @@ struct RTLIL::IdString
|
||||||
if (global_id_storage_.at(idx).buf == nullptr)
|
if (global_id_storage_.at(idx).buf == nullptr)
|
||||||
log("#X# DB-DUMP index %d: FREE\n", idx);
|
log("#X# DB-DUMP index %d: FREE\n", idx);
|
||||||
else
|
else
|
||||||
log("#X# DB-DUMP index %d: '%s' (ref %u)\n", idx, refcount(idx).buf, refcount);
|
log("#X# DB-DUMP index %d: '%s' (ref %u)\n", idx, global_id_storage_.at(idx).buf, refcount(idx));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue