[all-commits] [llvm/llvm-project] 7cb25f: [llvm-strip][WebAssembly] Support strip flags

Derek Schuff via All-commits all-commits at lists.llvm.org
Wed Jul 14 14:17:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cb25f53875e5490bccaf297accd34b7331cfb8b
      https://github.com/llvm/llvm-project/commit/7cb25f53875e5490bccaf297accd34b7331cfb8b
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2021-07-14 (Wed, 14 Jul 2021)

  Changed paths:
    A llvm/test/tools/llvm-objcopy/wasm/basic-keep.test
    A llvm/test/tools/llvm-objcopy/wasm/basic-only-section.test
    A llvm/test/tools/llvm-objcopy/wasm/basic-strip.test
    A llvm/test/tools/llvm-objcopy/wasm/only-keep-debug.test
    A llvm/test/tools/llvm-objcopy/wasm/strip-all.test
    A llvm/test/tools/llvm-objcopy/wasm/strip-debug.test
    A llvm/test/tools/llvm-objcopy/wasm/strip-reloc.test
    M llvm/tools/llvm-objcopy/ConfigManager.cpp
    M llvm/tools/llvm-objcopy/wasm/WasmObjcopy.cpp

  Log Message:
  -----------
  [llvm-strip][WebAssembly] Support strip flags

Summary:
Add support for the basic section stripping (and keeping) flags for wasm:
strip with no flags, --strip-all, --strip-debug,
--only-section, --keep-section, and --only-keep-debug.

Factor section removal into a function and use a predicate chain like
the ELF implementation.

Reviewers: jhenderson, sbc100

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




More information about the All-commits mailing list