Remove unnecesasry and incorrect trace class CUse.

This commit is contained in:
Geza Lore 2021-07-13 14:20:17 +01:00
parent 17cc452f79
commit 1691bbfe25

View File

@ -201,11 +201,6 @@ class CUseVisitor final : public AstNVisitor {
// VISITORS // VISITORS
virtual void visit(AstNodeModule* nodep) override { virtual void visit(AstNodeModule* nodep) override {
if (v3Global.opt.trace()) {
AstCUse* const usep
= m_state.newUse(nodep, VUseType::INT_FWD_CLASS, v3Global.opt.traceClassBase());
usep->protect(false);
}
makeUseCells(nodep); makeUseCells(nodep);
{ CUseDTypeVisitor dtypeVisitor{nodep, m_state}; } { CUseDTypeVisitor dtypeVisitor{nodep, m_state}; }
if (AstClass* const classp = VN_CAST(nodep, Class)) { if (AstClass* const classp = VN_CAST(nodep, Class)) {