Internals: Fix class dump

This commit is contained in:
Wilson Snyder 2021-12-22 20:06:04 -05:00
parent 0658a7654f
commit fd45be3def
2 changed files with 3 additions and 2 deletions

View File

@ -1322,7 +1322,7 @@ bool AstClass::isClassExtendedFrom(const AstClass* refClassp, const AstClass* ba
return isClassExtendedFrom(refClassp->extendsp()->classp(), baseClassp);
}
void AstClass::dump(std::ostream& str) const {
this->AstNode::dump(str);
this->AstNodeModule::dump(str);
if (isExtended()) str << " [EXT]";
if (isVirtual()) str << " [VIRT]";
}
@ -1336,6 +1336,7 @@ AstClass* AstClassExtends::classp() const {
}
void AstClassRefDType::dump(std::ostream& str) const {
this->AstNode::dump(str);
if (classOrPackagep()) str << " cpkg=" << nodeAddr(classOrPackagep());
if (classp()) {
str << " -> ";
classp()->dump(str);

View File

@ -302,5 +302,5 @@ public:
void V3LinkJump::linkJump(AstNetlist* nodep) {
UINFO(2, __FUNCTION__ << ": " << endl);
{ LinkJumpVisitor{nodep}; } // Destruct before checking
V3Global::dumpCheckGlobalTree("link", 0, v3Global.opt.dumpTreeLevel(__FILE__) >= 3);
V3Global::dumpCheckGlobalTree("linkjump", 0, v3Global.opt.dumpTreeLevel(__FILE__) >= 3);
}