From d6e3e55c40a973e233b168c19b1f1718212b41a4 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 13 May 2020 14:36:53 -0700 Subject: [PATCH] Remove unused Debugging variable. --- llvm/include/llvm/Transforms/IPO/Inliner.h | 1 - llvm/lib/Transforms/IPO/Inliner.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/include/llvm/Transforms/IPO/Inliner.h b/llvm/include/llvm/Transforms/IPO/Inliner.h index 442c12a9..5a5b561 100644 --- a/llvm/include/llvm/Transforms/IPO/Inliner.h +++ b/llvm/include/llvm/Transforms/IPO/Inliner.h @@ -138,7 +138,6 @@ private: const InlineParams Params; const InliningAdvisorMode Mode; const unsigned MaxDevirtIterations; - const bool Debugging; CGSCCPassManager PM; ModulePassManager MPM; }; diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp index 7ff9059..4e94d44 100644 --- a/llvm/lib/Transforms/IPO/Inliner.cpp +++ b/llvm/lib/Transforms/IPO/Inliner.cpp @@ -1041,7 +1041,7 @@ ModuleInlinerWrapperPass::ModuleInlinerWrapperPass(InlineParams Params, InliningAdvisorMode Mode, unsigned MaxDevirtIterations) : Params(Params), Mode(Mode), MaxDevirtIterations(MaxDevirtIterations), - Debugging(Debugging), PM(Debugging), MPM(Debugging) { + PM(Debugging), MPM(Debugging) { // Run the inliner first. The theory is that we are walking bottom-up and so // the callees have already been fully optimized, and we want to inline them // into the callers so that our optimizations can reflect that. -- 2.7.4