summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPhilip Pfaffe <philip.pfaffe@gmail.com>2017-07-10 13:54:23 +0000
committerPhilip Pfaffe <philip.pfaffe@gmail.com>2017-07-10 13:54:23 +0000
commit138dd5da1fa5af6ab2e4911e1d9b56847d028ad0 (patch)
treeec17802f23013245626080a3f0599bc672e81742 /tools
parent45074ea32a55b257c3361053e7a92f3d7a3f9778 (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.cpp12
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);
});
}