[PATCH] D130458: [llvm-objcopy] Support --{,de}compress-debug-sections for zstd
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 25 09:16:00 PDT 2022
dblaikie added inline comments.
================
Comment at: llvm/lib/ObjCopy/ELF/ELFObject.cpp:449-457
+ if (Error E = compression::zlib::uncompress(Compressed, Decompressed,
+ static_cast<size_t>(Sec.Size)))
+ return Report(std::move(E));
+ break;
+ case ELFCOMPRESS_ZSTD:
+ if (Error E = compression::zstd::uncompress(Compressed, Decompressed,
static_cast<size_t>(Sec.Size)))
----------------
MaskRay wrote:
> dblaikie wrote:
> > sounded like the folks contributing zstd support had some plans to make modular compression algorithm wrappers - that I'd guess would look more like "get the compression handler, given the compression type, then use it" so wouldn't need to have two separate calls to uncompress here?
> This can be a future improvement when the API is available.
Some coordination might be good if those folks already have outstanding patches/some planned direction, though?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130458/new/
https://reviews.llvm.org/D130458
More information about the llvm-commits
mailing list