mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 01:52:17 +02:00
Internals: Only show SimulateVisitor note once per type
This commit is contained in:
+5
-1
@@ -378,7 +378,11 @@ private:
|
||||
clearOptimizable(nodep,
|
||||
"Unknown node type, perhaps missing visitor in SimulateVisitor");
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user