mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-17 10:55:58 +00:00
[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
This commit is contained in:
parent
85356e1a66
commit
c2226fc117
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user