Commentary
This commit is contained in:
parent
fbc814b54a
commit
ef72c42aa7
|
|
@ -475,7 +475,7 @@ class SplitUnpackedVarVisitor : public AstNVisitor, public SplitVarImpl {
|
||||||
UINFO(4, "Skip " << nodep->prettyNameQ() << "\n");
|
UINFO(4, "Skip " << nodep->prettyNameQ() << "\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
UASSERT_OBJ(!m_modp, m_modp, "Nested module declration");
|
UASSERT_OBJ(!m_modp, m_modp, "Nested module declaration");
|
||||||
UASSERT_OBJ(m_refs.empty(), nodep, "The last module didn't finish split()");
|
UASSERT_OBJ(m_refs.empty(), nodep, "The last module didn't finish split()");
|
||||||
m_modp = nodep;
|
m_modp = nodep;
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
|
|
@ -990,7 +990,7 @@ class SplitPackedVarVisitor : public AstNVisitor, public SplitVarImpl {
|
||||||
// key:variable to be split. value:location where the variable is referenced.
|
// key:variable to be split. value:location where the variable is referenced.
|
||||||
vl_unordered_map<AstVar*, PackedVarRef> m_refs;
|
vl_unordered_map<AstVar*, PackedVarRef> m_refs;
|
||||||
virtual void visit(AstNodeModule* nodep) VL_OVERRIDE {
|
virtual void visit(AstNodeModule* nodep) VL_OVERRIDE {
|
||||||
UASSERT_OBJ(m_modp == NULL, m_modp, "Nested module declration");
|
UASSERT_OBJ(m_modp == NULL, m_modp, "Nested module declaration");
|
||||||
if (!VN_IS(nodep, Module)) {
|
if (!VN_IS(nodep, Module)) {
|
||||||
UINFO(5, "Skip " << nodep->prettyNameQ() << "\n");
|
UINFO(5, "Skip " << nodep->prettyNameQ() << "\n");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue