mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Use and enforce class final for ~5% performance boost.
This commit is contained in:
+3
-3
@@ -36,7 +36,7 @@
|
||||
|
||||
//######################################################################
|
||||
|
||||
class BeginState {
|
||||
class BeginState final {
|
||||
private:
|
||||
// NODE STATE
|
||||
// Entire netlist:
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
|
||||
//######################################################################
|
||||
|
||||
class BeginVisitor : public AstNVisitor {
|
||||
class BeginVisitor final : public AstNVisitor {
|
||||
private:
|
||||
// STATE
|
||||
BeginState* m_statep; // Current global state
|
||||
@@ -247,7 +247,7 @@ public:
|
||||
|
||||
//######################################################################
|
||||
|
||||
class BeginRelinkVisitor : public AstNVisitor {
|
||||
class BeginRelinkVisitor final : public AstNVisitor {
|
||||
// Replace tasks with new pointer
|
||||
private:
|
||||
// NODE STATE
|
||||
|
||||
Reference in New Issue
Block a user