[llvm-objcopy] Delete unused parameter from replaceDebugSections. NFC
authorFangrui Song <maskray@google.com>
Fri, 15 Mar 2019 10:27:28 +0000 (10:27 +0000)
committerFangrui Song <maskray@google.com>
Fri, 15 Mar 2019 10:27:28 +0000 (10:27 +0000)
llvm-svn: 356245

llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp

index 250eeea..b859e3a 100644 (file)
@@ -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<bool(const SectionBase &)> shouldReplace,
     function_ref<SectionBase *(const SectionBase *)> 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<CompressedSection>(
                                *S, Config.CompressionType);
                          });
   else if (Config.DecompressDebugSections)
     replaceDebugSections(
-        Config, Obj, RemovePred,
+        Obj, RemovePred,
         [](const SectionBase &S) { return isa<CompressedSection>(&S); },
         [&Obj](const SectionBase *S) {
           auto CS = cast<CompressedSection>(S);