From 02d1c40fad67c34ae419bcffcf59bcd85175be9d Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Mon, 23 Nov 2015 17:42:49 +0000 Subject: [PATCH] Remove unused function parameter (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253889 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-link/llvm-link.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index ada55c93a6e..9291e9b5862 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/tools/llvm-link/llvm-link.cpp @@ -143,7 +143,7 @@ static void diagnosticHandler(const DiagnosticInfo &DI) { /// Load a function index if requested by the -functionindex option. static ErrorOr> -loadIndex(LLVMContext &Context, const Module *ExportingModule = nullptr) { +loadIndex(const Module *ExportingModule = nullptr) { assert(!FunctionIndex.empty()); ErrorOr> FileOrErr = MemoryBuffer::getFileOrSTDIN(FunctionIndex); @@ -208,8 +208,7 @@ static bool importFunctions(const char *argv0, LLVMContext &Context, std::unique_ptr Index; if (!FunctionIndex.empty()) { - ErrorOr> IndexOrErr = - loadIndex(Context); + ErrorOr> IndexOrErr = loadIndex(); std::error_code EC = IndexOrErr.getError(); if (EC) { errs() << EC.message() << '\n'; @@ -246,8 +245,7 @@ static bool linkFiles(const char *argv0, LLVMContext &Context, Linker &L, // local functions/variables as exported and promote if necessary. std::unique_ptr Index; if (!FunctionIndex.empty()) { - ErrorOr> IndexOrErr = - loadIndex(Context, &*M); + ErrorOr> IndexOrErr = loadIndex(&*M); std::error_code EC = IndexOrErr.getError(); if (EC) { errs() << EC.message() << '\n'; -- 2.34.1