]> granicus.if.org Git - llvm/commitdiff
[PM] Fix a warning.
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Mon, 10 Jul 2017 13:54:23 +0000 (13:54 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Mon, 10 Jul 2017 13:54:23 +0000 (13:54 +0000)
The DebugLogging argument was unused in the EP callbacks registration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307536 91177308-0d34-0410-b5e6-96231b3b80d8

tools/opt/NewPMDriver.cpp

index 0501e80e1a0620eede56cfcf5ac2a314cddcdbb1..07ba102e371b481b075c23dfc8077c25bf17f047 100644 (file)
@@ -91,39 +91,39 @@ static void registerEPCallbacks(PassBuilder &PB, bool VerifyEachPass,
     PB.registerPeepholeEPCallback([&PB, VerifyEachPass, DebugLogging](
         FunctionPassManager &PM, PassBuilder::OptimizationLevel Level) {
       return PB.parsePassPipeline(PM, PeepholeEPPipeline, VerifyEachPass,
-                                  DebugPM);
+                                  DebugLogging);
     });
   if (!LateLoopOptimizationsEPPipeline.empty())
     PB.registerLateLoopOptimizationsEPCallback(
         [&PB, VerifyEachPass, DebugLogging](
             LoopPassManager &PM, PassBuilder::OptimizationLevel Level) {
           return PB.parsePassPipeline(PM, LateLoopOptimizationsEPPipeline,
-                                      VerifyEachPass, DebugPM);
+                                      VerifyEachPass, DebugLogging);
         });
   if (!LoopOptimizerEndEPPipeline.empty())
     PB.registerLoopOptimizerEndEPCallback([&PB, VerifyEachPass, DebugLogging](
         LoopPassManager &PM, PassBuilder::OptimizationLevel Level) {
       return PB.parsePassPipeline(PM, LoopOptimizerEndEPPipeline,
-                                  VerifyEachPass, DebugPM);
+                                  VerifyEachPass, DebugLogging);
     });
   if (!ScalarOptimizerLateEPPipeline.empty())
     PB.registerScalarOptimizerLateEPCallback(
         [&PB, VerifyEachPass, DebugLogging](
             FunctionPassManager &PM, PassBuilder::OptimizationLevel Level) {
           return PB.parsePassPipeline(PM, ScalarOptimizerLateEPPipeline,
-                                      VerifyEachPass, DebugPM);
+                                      VerifyEachPass, DebugLogging);
         });
   if (!CGSCCOptimizerLateEPPipeline.empty())
     PB.registerCGSCCOptimizerLateEPCallback([&PB, VerifyEachPass, DebugLogging](
         CGSCCPassManager &PM, PassBuilder::OptimizationLevel Level) {
       return PB.parsePassPipeline(PM, CGSCCOptimizerLateEPPipeline,
-                                  VerifyEachPass, DebugPM);
+                                  VerifyEachPass, DebugLogging);
     });
   if (!VectorizerStartEPPipeline.empty())
     PB.registerVectorizerStartEPCallback([&PB, VerifyEachPass, DebugLogging](
         FunctionPassManager &PM, PassBuilder::OptimizationLevel Level) {
       return PB.parsePassPipeline(PM, VectorizerStartEPPipeline, VerifyEachPass,
-                                  DebugPM);
+                                  DebugLogging);
     });
 }