Remove footprint comment when single threaded.

This commit is contained in:
Wilson Snyder 2019-11-11 22:21:37 -05:00
parent 6ce81698e7
commit 98dcbc6b3e
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@ public:
string newVarCmt = varp->mtasksString(); string newVarCmt = varp->mtasksString();
if (*curVarCmtp != newVarCmt) { if (*curVarCmtp != newVarCmt) {
*curVarCmtp = newVarCmt; *curVarCmtp = newVarCmt;
puts("// Begin mtask footprint "+*curVarCmtp+"\n"); if (v3Global.opt.threads()) {
puts("// Begin mtask footprint "+*curVarCmtp+"\n");
}
} }
} }
void emitTypedefs(AstNode* firstp) { void emitTypedefs(AstNode* firstp) {