mirror of
https://github.com/verilator/verilator.git
synced 2026-09-08 02:28:43 +02:00
Internals: Use and enforce class final for ~5% performance boost.
This commit is contained in:
+3
-3
@@ -36,7 +36,7 @@
|
||||
|
||||
//######################################################################
|
||||
|
||||
class BrokenTable : public AstNVisitor {
|
||||
class BrokenTable final : public AstNVisitor {
|
||||
// Table of brokenExists node pointers
|
||||
private:
|
||||
// MEMBERS
|
||||
@@ -211,7 +211,7 @@ bool AstNode::brokeExistsBelow() const {
|
||||
|
||||
//######################################################################
|
||||
|
||||
class BrokenMarkVisitor : public AstNVisitor {
|
||||
class BrokenMarkVisitor final : public AstNVisitor {
|
||||
// Mark every node in the tree
|
||||
private:
|
||||
// NODE STATE
|
||||
@@ -237,7 +237,7 @@ public:
|
||||
//######################################################################
|
||||
// Broken state, as a visitor of each AstNode
|
||||
|
||||
class BrokenCheckVisitor : public AstNVisitor {
|
||||
class BrokenCheckVisitor final : public AstNVisitor {
|
||||
bool m_inScope = false; // Under AstScope
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user