From 98dcbc6b3ef5b6418defab61df63f834dafc21be Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 11 Nov 2019 22:21:37 -0500 Subject: [PATCH] Remove footprint comment when single threaded. --- src/V3EmitC.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index 6ece501e6..1fc0d477b 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -110,7 +110,9 @@ public: string newVarCmt = varp->mtasksString(); if (*curVarCmtp != newVarCmt) { *curVarCmtp = newVarCmt; - puts("// Begin mtask footprint "+*curVarCmtp+"\n"); + if (v3Global.opt.threads()) { + puts("// Begin mtask footprint "+*curVarCmtp+"\n"); + } } } void emitTypedefs(AstNode* firstp) {