forked from github/verilator
Internals: Remove typedefFwd earlier to simplify Link
This commit is contained in:
parent
429437f1b9
commit
d34fccec22
@ -541,12 +541,6 @@ private:
|
||||
findAndInsertAndCheck(nodep, nodep->name());
|
||||
}
|
||||
}
|
||||
virtual void visit(AstTypedefFwd* nodep, AstNUser*) {
|
||||
// We only needed the forward declaration in order to parse correctly.
|
||||
// We won't even check it was ever really defined, as it might have been in a header
|
||||
// file referring to a module we never needed
|
||||
nodep->unlinkFrBack()->deleteTree();
|
||||
}
|
||||
virtual void visit(AstRefDType* nodep, AstNUser*) {
|
||||
// Resolve its reference
|
||||
if (m_idState==ID_RESOLVE && !nodep->defp()) {
|
||||
|
@ -382,6 +382,13 @@ private:
|
||||
nodep->deleteTree(); nodep=NULL;
|
||||
}
|
||||
|
||||
virtual void visit(AstTypedefFwd* nodep, AstNUser*) {
|
||||
// We only needed the forward declaration in order to parse correctly.
|
||||
// We won't even check it was ever really defined, as it might have been in a header
|
||||
// file referring to a module we never needed
|
||||
nodep->unlinkFrBack()->deleteTree();
|
||||
}
|
||||
|
||||
virtual void visit(AstNode* nodep, AstNUser*) {
|
||||
// Default: Just iterate
|
||||
cleanFileline(nodep);
|
||||
|
Loading…
Reference in New Issue
Block a user