summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-02-21 08:51:13 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-02-21 15:20:30 +0000
commitbb04c9d87bdb353b572d596ad8094b0f505a1aba (patch)
tree5e1ce3d3d31d1c86138fd7c0ea21acddcde07d20
parent019162fb900c775d582213d22b3f1ce063553969 (diff)
Make graph delegate visitor classes final.
Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 181943478 Change-Id: I204e34d992473063ef075f2cf9e57dc8b1082274
-rw-r--r--compiler/optimizing/graph_checker.h2
-rw-r--r--compiler/optimizing/graph_visualizer.cc2
-rw-r--r--compiler/optimizing/prepare_for_register_allocation.h2
-rw-r--r--compiler/optimizing/profiling_info_builder.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/compiler/optimizing/graph_checker.h b/compiler/optimizing/graph_checker.h
index 5704bcec1a..541a9cc3d2 100644
--- a/compiler/optimizing/graph_checker.h
+++ b/compiler/optimizing/graph_checker.h
@@ -30,7 +30,7 @@ namespace art HIDDEN {
class CodeGenerator;
// A control-flow graph visitor performing various checks.
-class GraphChecker : public HGraphDelegateVisitor {
+class GraphChecker final : public HGraphDelegateVisitor {
public:
explicit GraphChecker(HGraph* graph,
CodeGenerator* codegen = nullptr,
diff --git a/compiler/optimizing/graph_visualizer.cc b/compiler/optimizing/graph_visualizer.cc
index afbf941355..6696c1ef17 100644
--- a/compiler/optimizing/graph_visualizer.cc
+++ b/compiler/optimizing/graph_visualizer.cc
@@ -195,7 +195,7 @@ class HGraphVisualizerDisassembler {
/**
* HGraph visitor to generate a file suitable for the c1visualizer tool and IRHydra.
*/
-class HGraphVisualizerPrinter : public HGraphDelegateVisitor {
+class HGraphVisualizerPrinter final : public HGraphDelegateVisitor {
public:
HGraphVisualizerPrinter(HGraph* graph,
std::ostream& output,
diff --git a/compiler/optimizing/prepare_for_register_allocation.h b/compiler/optimizing/prepare_for_register_allocation.h
index 0426f8470b..f53c8a1285 100644
--- a/compiler/optimizing/prepare_for_register_allocation.h
+++ b/compiler/optimizing/prepare_for_register_allocation.h
@@ -30,7 +30,7 @@ class OptimizingCompilerStats;
* For example it changes uses of null checks and bounds checks to the original
* objects, to avoid creating a live range for these checks.
*/
-class PrepareForRegisterAllocation : public HGraphDelegateVisitor {
+class PrepareForRegisterAllocation final : public HGraphDelegateVisitor {
public:
PrepareForRegisterAllocation(HGraph* graph,
const CompilerOptions& compiler_options,
diff --git a/compiler/optimizing/profiling_info_builder.h b/compiler/optimizing/profiling_info_builder.h
index c8dc59a03c..ca1c8dd431 100644
--- a/compiler/optimizing/profiling_info_builder.h
+++ b/compiler/optimizing/profiling_info_builder.h
@@ -28,7 +28,7 @@ class HInliner;
class InlineCache;
class ProfilingInfo;
-class ProfilingInfoBuilder : public HGraphDelegateVisitor {
+class ProfilingInfoBuilder final : public HGraphDelegateVisitor {
public:
ProfilingInfoBuilder(HGraph* graph,
const CompilerOptions& compiler_options,