diff options
author | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-07-10 13:54:23 +0000 |
---|---|---|
committer | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-07-10 13:54:23 +0000 |
commit | 138dd5da1fa5af6ab2e4911e1d9b56847d028ad0 (patch) | |
tree | ec17802f23013245626080a3f0599bc672e81742 /tools | |
parent | 45074ea32a55b257c3361053e7a92f3d7a3f9778 (diff) |
[PM] Fix a warning.
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/opt/NewPMDriver.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/opt/NewPMDriver.cpp b/tools/opt/NewPMDriver.cpp index 0501e80e1a06..07ba102e371b 100644 --- a/tools/opt/NewPMDriver.cpp +++ b/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); }); } |