From 7b07cf912e52b1425e8bd5fc2805ff48007d6e52 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Thu, 20 Oct 2022 15:32:10 +0100 Subject: [PATCH] Delete trigger dump when --protect-ids is used In order to not leak signal names with --protect-ids, we simply make the trigger dump function empty (this is a debug only construct). Partial fix for #3689 --- src/V3Sched.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/V3Sched.cpp b/src/V3Sched.cpp index b34133c77..c81c27869 100644 --- a/src/V3Sched.cpp +++ b/src/V3Sched.cpp @@ -507,6 +507,9 @@ const TriggerKit createTriggers(AstNetlist* netlistp, SenExprBuilder& senExprBui add("#endif\n"); } + // The debug code might leak signal names, so simply delete it when using --protect-ids + if (v3Global.opt.protectIds()) dumpp->stmtsp()->unlinkFrBackWithNext()->deleteTree(); + return {vscp, funcp, dumpp, map}; }