[llvm-commits] [polly] r156325 - in /polly/trunk: include/polly/RegisterPasses.h lib/RegisterPasses.cpp

Sebastian Pop spop at codeaurora.org
Mon May 7 14:27:09 PDT 2012


Author: spop
Date: Mon May  7 16:27:09 2012
New Revision: 156325

URL: http://llvm.org/viewvc/llvm-project?rev=156325&view=rev
Log:
make registerPollyPasses static, remove param

Modified:
    polly/trunk/include/polly/RegisterPasses.h
    polly/trunk/lib/RegisterPasses.cpp

Modified: polly/trunk/include/polly/RegisterPasses.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/RegisterPasses.h?rev=156325&r1=156324&r2=156325&view=diff
==============================================================================
--- polly/trunk/include/polly/RegisterPasses.h (original)
+++ polly/trunk/include/polly/RegisterPasses.h Mon May  7 16:27:09 2012
@@ -23,9 +23,5 @@
 // optimized.
 // (These passes are automatically included in registerPollyPasses).
 void registerPollyPreoptPasses(llvm::PassManagerBase &PM);
-
-// Register the Polly optimizer (including its preoptimizations).
-void registerPollyPasses(llvm::PassManagerBase &PM,
-                         bool DisableCodegen = false);
 }
 #endif

Modified: polly/trunk/lib/RegisterPasses.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/RegisterPasses.cpp?rev=156325&r1=156324&r2=156325&view=diff
==============================================================================
--- polly/trunk/lib/RegisterPasses.cpp (original)
+++ polly/trunk/lib/RegisterPasses.cpp Mon May  7 16:27:09 2012
@@ -193,7 +193,7 @@
 
 VectorizerChoice polly::PollyVectorizerChoice;
 
-void polly::registerPollyPasses(llvm::PassManagerBase &PM, bool DisableCodegen) {
+static void registerPollyPasses(llvm::PassManagerBase &PM) {
   bool RunCodegen = !DisableCodegen;
 
   registerPollyPreoptPasses(PM);
@@ -274,7 +274,7 @@
     return;
   }
 
-  registerPollyPasses(PM, DisableCodegen);
+  registerPollyPasses(PM);
 }
 
 static void registerPollyOptLevel0Passes(const llvm::PassManagerBuilder &,





More information about the llvm-commits mailing list