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,9 +110,11 @@ public:
string newVarCmt = varp->mtasksString(); string newVarCmt = varp->mtasksString();
if (*curVarCmtp != newVarCmt) { if (*curVarCmtp != newVarCmt) {
*curVarCmtp = newVarCmt; *curVarCmtp = newVarCmt;
if (v3Global.opt.threads()) {
puts("// Begin mtask footprint "+*curVarCmtp+"\n"); puts("// Begin mtask footprint "+*curVarCmtp+"\n");
} }
} }
}
void emitTypedefs(AstNode* firstp) { void emitTypedefs(AstNode* firstp) {
bool first = true; bool first = true;
for (AstNode* loopp=firstp; loopp; loopp = loopp->nextp()) { for (AstNode* loopp=firstp; loopp; loopp = loopp->nextp()) {