Fix interface inside generate, bug1001, bug1003.

Signed-off-by: Wilson Snyder <[email protected]>
This commit is contained in:
Todd Strader
2015-12-05 19:39:40 -05:00
committed by Wilson Snyder
parent f0af8726e3
commit 5e54d3e41a
27 changed files with 832 additions and 31 deletions
+8 -1
View File
@@ -186,6 +186,13 @@ private:
}
nodep->iterateChildren(*this);
}
virtual void visit(AstVarXRef* nodep, AstNUser*) {
UINFO(9, " VARXREF "<<nodep<<endl);
if (m_namedScope != "" && nodep->inlinedDots() == "") {
nodep->inlinedDots(m_namedScope);
UINFO(9, " rescope to "<<nodep<<endl);
}
}
virtual void visit(AstScopeName* nodep, AstNUser*) {
// If there's a %m in the display text, we add a special node that will contain the name()
// Similar code in V3Inline
@@ -218,7 +225,7 @@ private:
}
nodep->iterateChildren(*this);
m_ifDepth = prevIfDepth;
}
}
virtual void visit(AstNode* nodep, AstNUser*) {
nodep->iterateChildren(*this);
}