diff options
author | Fangrui Song <maskray@google.com> | 2019-03-15 10:27:28 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-03-15 10:27:28 +0000 |
commit | 3dfc3fb02b39f413db9a5363a33185fcfc43c8b5 (patch) | |
tree | 20df78866bae6544a2670116fde431e4458dd5ee | |
parent | a85bf8747a7bfc428270e7355e28f93bb12b8f51 (diff) | |
download | bcm5719-llvm-3dfc3fb02b39f413db9a5363a33185fcfc43c8b5.tar.gz bcm5719-llvm-3dfc3fb02b39f413db9a5363a33185fcfc43c8b5.zip |
[llvm-objcopy] Delete unused parameter from replaceDebugSections. NFC
llvm-svn: 356245
-rw-r--r-- | llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp b/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp index 250eeea1c81..b859e3a192b 100644 --- a/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp +++ b/llvm/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<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); |