[llvm] r307536 - [PM] Fix a warning.
Philip Pfaffe via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 06:54:23 PDT 2017
Author: pfaffe
Date: Mon Jul 10 06:54:23 2017
New Revision: 307536
URL: http://llvm.org/viewvc/llvm-project?rev=307536&view=rev
Log:
[PM] Fix a warning.
The DebugLogging argument was unused in the EP callbacks registration.
Modified:
llvm/trunk/tools/opt/NewPMDriver.cpp
Modified: llvm/trunk/tools/opt/NewPMDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/NewPMDriver.cpp?rev=307536&r1=307535&r2=307536&view=diff
==============================================================================
--- llvm/trunk/tools/opt/NewPMDriver.cpp (original)
+++ llvm/trunk/tools/opt/NewPMDriver.cpp Mon Jul 10 06:54:23 2017
@@ -91,39 +91,39 @@ static void registerEPCallbacks(PassBuil
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);
});
}
More information about the llvm-commits
mailing list