From 45be64464bb27ffa24dfead655895377ffb2c8c5 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Sun, 27 Sep 2015 15:43:29 +0000 Subject: [NFC] Consistenly use commented and annotated ScopPass functions The changes affect methods that are part of the Pass interface and include: - Comments that describe the methods purpose. - A consistent use of the keywords override and virtual. Additionally, the printScop method is now optional and removed from SCoP passes that do not implement it. llvm-svn: 248685 --- polly/lib/CodeGen/CodeGeneration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'polly/lib/CodeGen/CodeGeneration.cpp') diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 9692063774e7..96d09387565c 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -108,6 +108,7 @@ public: } } + /// @brief Generate LLVM-IR for the SCoP @p S. bool runOnScop(Scop &S) override { AI = &getAnalysis(); @@ -159,8 +160,7 @@ public: return true; } - void printScop(raw_ostream &, Scop &) const override {} - + /// @brief Register all analyses and transformation required. void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired(); AU.addRequired(); -- cgit v1.2.3