From c2226fc117edec7923f11574e1aad1217f795b51 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 15 Mar 2019 10:27:28 +0000 Subject: [PATCH] [llvm-objcopy] Delete unused parameter from replaceDebugSections. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356245 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objcopy/ELF/ELFObjcopy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/llvm-objcopy/ELF/ELFObjcopy.cpp b/tools/llvm-objcopy/ELF/ELFObjcopy.cpp index 250eeea1c81..b859e3a192b 100644 --- a/tools/llvm-objcopy/ELF/ELFObjcopy.cpp +++ b/tools/llvm-objcopy/ELF/ELFObjcopy.cpp @@ -229,7 +229,7 @@ static bool isCompressable(const SectionBase &Section) { } static void replaceDebugSections( - const CopyConfig &Config, Object &Obj, SectionPred &RemovePred, + Object &Obj, SectionPred &RemovePred, function_ref shouldReplace, function_ref addSection) { // Build a list of the debug sections we are going to replace. @@ -483,14 +483,14 @@ static Error handleArgs(const CopyConfig &Config, Object &Obj, } if (Config.CompressionType != DebugCompressionType::None) - replaceDebugSections(Config, Obj, RemovePred, isCompressable, + replaceDebugSections(Obj, RemovePred, isCompressable, [&Config, &Obj](const SectionBase *S) { return &Obj.addSection( *S, Config.CompressionType); }); else if (Config.DecompressDebugSections) replaceDebugSections( - Config, Obj, RemovePred, + Obj, RemovePred, [](const SectionBase &S) { return isa(&S); }, [&Obj](const SectionBase *S) { auto CS = cast(S);