Add toggle coverage

This commit is contained in:
Wilson Snyder
2008-12-12 15:34:02 -05:00
parent 6b46da0240
commit 77405ddded
26 changed files with 610 additions and 13 deletions
+3 -1
View File
@@ -93,7 +93,9 @@ class EmitCSyms : EmitCBaseVisitor {
}
virtual void visit(AstCoverDecl* nodep, AstNUser*) {
// Assign numbers to all bins, so we know how big of an array to use
nodep->binNum(m_coverBins++);
if (!nodep->dataDeclNullp()) { // else duplicate we don't need code for
nodep->binNum(m_coverBins++);
}
}
// NOPs
virtual void visit(AstNodeStmt*, AstNUser*) {}