From 429437f1b9f96556686d09f8b9a682a24f15a7c3 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 28 May 2012 09:18:18 -0400 Subject: [PATCH] Internals: Reorder code. No functional change. --- src/V3LinkDot.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/V3LinkDot.cpp b/src/V3LinkDot.cpp index 6ed341a69..2de309ace 100644 --- a/src/V3LinkDot.cpp +++ b/src/V3LinkDot.cpp @@ -487,6 +487,12 @@ private: // nodep->flatsp()->iterateAndNext(*this); } + virtual void visit(AstNodeFTask* nodep, AstNUser*) { + if (!m_beginp) { // For now, we don't support xrefs into functions inside begin blocks + m_statep->insertSym(m_cellVxp, nodep->name(), nodep); + } + // No recursion, we don't want to pick up variables + } virtual void visit(AstVar* nodep, AstNUser*) { if (!m_statep->forScopeCreation() && !m_beginp // For now, we don't support xrefs into begin blocks @@ -496,12 +502,6 @@ private: UINFO(9," Not allowing dot refs to: "<insertSym(m_cellVxp, nodep->name(), nodep); - } - // No recursion, we don't want to pick up variables - } virtual void visit(AstCFunc* nodep, AstNUser*) { // Ignore all AstVars under functions }