From 8c84699f2887f0282ae01d195a25b355c52d5726 Mon Sep 17 00:00:00 2001 From: Philip Pfaffe Date: Mon, 10 Jul 2017 13:54:23 +0000 Subject: [PATCH] [PM] Fix a warning. The DebugLogging argument was unused in the EP callbacks registration. llvm-svn: 307536 --- llvm/tools/opt/NewPMDriver.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/tools/opt/NewPMDriver.cpp b/llvm/tools/opt/NewPMDriver.cpp index 0501e80..07ba102 100644 --- a/llvm/tools/opt/NewPMDriver.cpp +++ b/llvm/tools/opt/NewPMDriver.cpp @@ -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); }); } -- 2.7.4