Internals: Use and enforce class final for ~5% performance boost.

This commit is contained in:
Wilson Snyder
2020-11-18 21:32:16 -05:00
parent c0888c1b0f
commit b6ded59c2b
224 changed files with 976 additions and 949 deletions
+2 -2
View File
@@ -36,7 +36,7 @@
//######################################################################
// Scope class functions
class ScopeVisitor : public AstNVisitor {
class ScopeVisitor final : public AstNVisitor {
private:
// NODE STATE
// AstVar::user1p -> AstVarScope replacement for this variable
@@ -319,7 +319,7 @@ public:
//######################################################################
// Scope cleanup -- remove unused activates
class ScopeCleanupVisitor : public AstNVisitor {
class ScopeCleanupVisitor final : public AstNVisitor {
private:
// STATE
AstScope* m_scopep = nullptr; // Current scope we are building