forked from github/verilator
Add more debug info to --report-unoptflat graph (#4039)
This commit is contained in:
parent
a9b07fe7d7
commit
b2ced6ff1d
@ -68,12 +68,16 @@ public:
|
||||
: V3GraphVertex{graphp}
|
||||
, m_logicp{logicp}
|
||||
, m_scopep{scopep} {}
|
||||
virtual V3GraphVertex* clone(V3Graph* graphp) const {
|
||||
return new LogicVertex{graphp, logicp(), scopep()};
|
||||
}
|
||||
|
||||
AstNode* logicp() const { return m_logicp; }
|
||||
AstScope* scopep() const { return m_scopep; }
|
||||
|
||||
// LCOV_EXCL_START // Debug code
|
||||
string name() const override { return m_logicp->fileline()->ascii(); };
|
||||
string dotShape() const override { return "rectangle"; }
|
||||
string dotShape() const override { return "rectangle2"; }
|
||||
// LCOV_EXCL_STOP
|
||||
};
|
||||
|
||||
@ -86,6 +90,7 @@ public:
|
||||
, m_vscp{vscp} {}
|
||||
AstVarScope* vscp() const { return m_vscp; }
|
||||
AstVar* varp() const { return m_vscp->varp(); }
|
||||
virtual V3GraphVertex* clone(V3Graph* graphp) const { return new VarVertex{graphp, vscp()}; }
|
||||
|
||||
// LCOV_EXCL_START // Debug code
|
||||
string name() const override { return m_vscp->name(); }
|
||||
|
Loading…
Reference in New Issue
Block a user