summaryrefslogtreecommitdiff
path: root/polly/lib/CodeGen/CodeGeneration.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2022-05-17 10:55:27 -0500
committerMichael Kruse <llvm-project@meinersbur.de>2022-05-17 12:05:39 -0500
commitbd93df937a6441db4aff67191ca0bb486554c34b (patch)
treec01bbb88269d582197145efe059165e5c077e2be /polly/lib/CodeGen/CodeGeneration.cpp
parentd92cec4c96eb85096cc64643764e1370fc08eafc (diff)
[Polly] Mark classes as final by default. NFC.
This make is obivious that a class was not intended to be derived from. NPM analysis pass can unfortunately not marked as final because they are derived from a llvm::Checker<T> template internally by the NPM. Also normalize the use of classes/structs * NPM passes are structs * Legacy passes are classes * structs that have methods and are not a visitor pattern are classes * structs have public inheritance by default, remove "public" keyword * Use typedef'ed type instead of inline forward declaration
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/CodeGeneration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp
index 31143eae7526..97d6737cc9c7 100644
--- a/polly/lib/CodeGen/CodeGeneration.cpp
+++ b/polly/lib/CodeGen/CodeGeneration.cpp
@@ -303,7 +303,7 @@ static bool generateCode(Scop &S, IslAstInfo &AI, LoopInfo &LI,
namespace {
-class CodeGeneration : public ScopPass {
+class CodeGeneration final : public ScopPass {
public:
static char ID;