Fix coverage hierarchy being backwards with inlining.

This commit is contained in:
Wilson Snyder
2008-11-04 17:19:59 -05:00
parent ce212722ad
commit 3e8cf26c1a
3 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ private:
virtual void visit(AstCoverDecl* nodep, AstNUser*) {
// Fix path in coverage statements
if (m_cellp) {
nodep->hier(nodep->hier()+"."+m_cellp->prettyName());
nodep->hier(m_cellp->prettyName()+"."+nodep->hier());
}
nodep->iterateChildren(*this);
}