From 9f8f61ef2f8b82ee1b080c57e0986d3100d6299f Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 3 Mar 2024 11:10:19 -0500 Subject: [PATCH] Internals: Only show SimulateVisitor note once per type --- src/V3Simulate.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/V3Simulate.h b/src/V3Simulate.h index 9a33a9429..559d30613 100644 --- a/src/V3Simulate.h +++ b/src/V3Simulate.h @@ -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 s_typePrinted; + const auto pair = s_typePrinted.emplace(nodep->type()); + if (pair.second) + UINFO(0, + "Unknown node type in SimulateVisitor: " << nodep->prettyTypeName() << endl); #endif } }