From 3255eec16c9b5def82790e0b4122554abfa9d360 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Sun, 10 Apr 2016 15:17:26 +0000 Subject: [PATCH] [ThinLTO] Remove unused parameter (NFC) llvm-svn: 265900 --- llvm/lib/Transforms/IPO/FunctionImport.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index a1d36de..32853b9 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -138,8 +138,8 @@ using EdgeInfo = std::pair; /// imported functions and the symbols they reference in their source module as /// exported from their source module. static void computeImportForFunction( - StringRef ModulePath, const FunctionSummary &Summary, - const ModuleSummaryIndex &Index, unsigned Threshold, + const FunctionSummary &Summary, const ModuleSummaryIndex &Index, + unsigned Threshold, const std::map &DefinedFunctions, SmallVectorImpl &Worklist, FunctionImporter::ImportMapTy &ImportsForModule, @@ -199,7 +199,6 @@ static void computeImportForFunction( /// as well as the list of "exports", i.e. the list of symbols referenced from /// another module (that may require promotion). static void ComputeImportForModule( - StringRef ModulePath, const std::map &DefinedFunctions, const ModuleSummaryIndex &Index, FunctionImporter::ImportMapTy &ImportsForModule, @@ -213,7 +212,7 @@ static void ComputeImportForModule( for (auto &FuncInfo : DefinedFunctions) { auto *Summary = FuncInfo.second; DEBUG(dbgs() << "Initalize import for " << FuncInfo.first << "\n"); - computeImportForFunction(ModulePath, *Summary, Index, ImportInstrLimit, + computeImportForFunction(*Summary, Index, ImportInstrLimit, DefinedFunctions, Worklist, ImportsForModule, ExportLists); } @@ -227,9 +226,8 @@ static void ComputeImportForModule( // Adjust the threshold Threshold = Threshold * ImportInstrFactor; - computeImportForFunction(ModulePath, *Summary, Index, Threshold, - DefinedFunctions, Worklist, ImportsForModule, - ExportLists); + computeImportForFunction(*Summary, Index, Threshold, DefinedFunctions, + Worklist, ImportsForModule, ExportLists); } } @@ -265,8 +263,8 @@ void llvm::ComputeCrossModuleImport( auto &ImportsForModule = ImportLists[DefinedFunctions.first()]; DEBUG(dbgs() << "Computing import for Module '" << DefinedFunctions.first() << "'\n"); - ComputeImportForModule(DefinedFunctions.first(), DefinedFunctions.second, - Index, ImportsForModule, ExportLists); + ComputeImportForModule(DefinedFunctions.second, Index, ImportsForModule, + ExportLists); } #ifndef NDEBUG -- 2.7.4