[llvm] r356245 - [llvm-objcopy] Delete unused parameter from replaceDebugSections. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 03:27:28 PDT 2019
Author: maskray
Date: Fri Mar 15 03:27:28 2019
New Revision: 356245
URL: http://llvm.org/viewvc/llvm-project?rev=356245&view=rev
Log:
[llvm-objcopy] Delete unused parameter from replaceDebugSections. NFC
Modified:
llvm/trunk/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
Modified: llvm/trunk/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objcopy/ELF/ELFObjcopy.cpp?rev=356245&r1=356244&r2=356245&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objcopy/ELF/ELFObjcopy.cpp (original)
+++ llvm/trunk/tools/llvm-objcopy/ELF/ELFObjcopy.cpp Fri Mar 15 03:27:28 2019
@@ -229,7 +229,7 @@ static bool isCompressable(const 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
}
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);
More information about the llvm-commits
mailing list