Support reporting some fork syntax errors.

This commit is contained in:
Wilson Snyder
2020-05-10 15:01:43 -04:00
parent ca162716c6
commit 8998ffc4e5
10 changed files with 122 additions and 13 deletions
-11
View File
@@ -490,17 +490,6 @@ private:
}
iterateChildren(nodep);
}
virtual void visit(AstFork* nodep) VL_OVERRIDE {
if (v3Global.opt.bboxUnsup()) {
AstBegin* newp
= new AstBegin(nodep->fileline(), nodep->name(), nodep->stmtsp()->unlinkFrBack());
nodep->replaceWith(newp);
VL_DO_DANGLING(nodep->deleteTree(), nodep);
} else {
nodep->v3error("Unsupported: fork statements");
// TBD might support only normal join, if so complain about other join flavors
}
}
virtual void visit(AstCase* nodep) VL_OVERRIDE {
V3Config::applyCase(nodep);
cleanFileline(nodep);