Internals: Only show SimulateVisitor note once per type
This commit is contained in:
parent
4b1f4938b8
commit
9f8f61ef2f
|
|
@ -378,7 +378,11 @@ private:
|
||||||
clearOptimizable(nodep,
|
clearOptimizable(nodep,
|
||||||
"Unknown node type, perhaps missing visitor in SimulateVisitor");
|
"Unknown node type, perhaps missing visitor in SimulateVisitor");
|
||||||
#ifdef VL_DEBUG
|
#ifdef VL_DEBUG
|
||||||
UINFO(0, "Unknown node type in SimulateVisitor: " << nodep->prettyTypeName() << endl);
|
static std::set<VNType> s_typePrinted;
|
||||||
|
const auto pair = s_typePrinted.emplace(nodep->type());
|
||||||
|
if (pair.second)
|
||||||
|
UINFO(0,
|
||||||
|
"Unknown node type in SimulateVisitor: " << nodep->prettyTypeName() << endl);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue