[PATCH] D73820: [llvm-strip][WebAssembly] Support strip flags

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 16:25:48 PST 2020


dschuff created this revision.
dschuff added reviewers: jhenderson, sbc100, aardappel.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google.
Herald added a reviewer: alexshap.
Herald added a reviewer: rupprecht.
Herald added a project: LLVM.
dschuff edited the summary of this revision.
dschuff added a parent revision: D70970: [llvm-objcopy][WebAssembly] Add dump/add/remove-section support.

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.

Depends on D70970 <https://reviews.llvm.org/D70970>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73820

Files:
  llvm/test/tools/llvm-objcopy/wasm/basic-keep.test
  llvm/test/tools/llvm-objcopy/wasm/basic-only-section.test
  llvm/test/tools/llvm-objcopy/wasm/basic-strip.test
  llvm/test/tools/llvm-objcopy/wasm/only-keep-debug.test
  llvm/test/tools/llvm-objcopy/wasm/strip-debug.test
  llvm/tools/llvm-objcopy/wasm/WasmObjcopy.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73820.241843.patch
Type: text/x-patch
Size: 8823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200201/f1a40514/attachment.bin>


More information about the llvm-commits mailing list