[all-commits] [llvm/llvm-project] e18b7c: [llvm-objcopy] Support --decompress-debug-sections...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Oct 12 11:52:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e18b7c7ae0c13909d7f1304aee8621781a3c27a0
      https://github.com/llvm/llvm-project/commit/e18b7c7ae0c13909d7f1304aee8621781a3c27a0
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-10-12 (Wed, 12 Oct 2022)

  Changed paths:
    M llvm/lib/ObjCopy/ELF/ELFObject.cpp
    A llvm/test/tools/llvm-objcopy/ELF/decompress-debug-sections-unsupported-zlib.test
    M llvm/tools/llvm-objcopy/ObjcopyOptions.cpp

  Log Message:
  -----------
  [llvm-objcopy] Support --decompress-debug-sections when zlib is disabled

When zlib is disabled at build time, the diagnostic `LLVM was not compiled with
LLVM_ENABLE_ZLIB: cannot decompress` for --decompress-debug-sections may be
inaccurate: if zstd is enabled, we should still support zstd decompression.

It's not useful to test zlib and zstd. Just remove the diagnostic and add a new
one before `compression::decompress`.

This fixes compress-debug-sections-zstd.test

Reviewed By: mariusz-sikora-at-amd, jhenderson, phosek

Differential Revision: https://reviews.llvm.org/D135744




More information about the All-commits mailing list