Internals: Remove all AstClassOrPackageRef in V3Width (#7125)

This commit is contained in:
Geza Lore 2026-02-22 16:26:44 +00:00 committed by GitHub
parent 579acced99
commit 350966de6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -819,7 +819,6 @@ public:
void classOrPackagep(AstNodeModule* nodep) {
m_classOrPackageNodep = reinterpret_cast<AstNode*>(nodep);
}
bool hasDType() const override VL_MT_SAFE { return false; }
string emitVerilog() override { V3ERROR_NA_RETURN(""); }
string emitC() override { V3ERROR_NA_RETURN(""); }
bool cleanOut() const override { V3ERROR_NA_RETURN(true); }

View File

@ -531,6 +531,10 @@ private:
}
editDType(nodep);
}
void visit(AstClassOrPackageRef* nodep) override {
// Reference must have been resolved, can delete these
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
}
void visit(AstNode* nodep) override {
iterateChildren(nodep);
editDType(nodep);