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

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 12 15:37:16 PDT 2021


dschuff updated this revision to Diff 358082.
dschuff added a comment.

rebase


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73820/new/

https://reviews.llvm.org/D73820

Files:
  llvm/tools/llvm-objcopy/wasm/WasmObjcopy.cpp


Index: llvm/tools/llvm-objcopy/wasm/WasmObjcopy.cpp
===================================================================
--- llvm/tools/llvm-objcopy/wasm/WasmObjcopy.cpp
+++ llvm/tools/llvm-objcopy/wasm/WasmObjcopy.cpp
@@ -55,7 +55,7 @@
                            SecName.str().c_str());
 }
 
-static void removeSections(const CopyConfig &Config, Object &Obj) {
+static void removeSections(const CommonConfig &Config, Object &Obj) {
   SectionPred RemovePred = [](const Section &) { return false; };
 
   // Explicitly-requested sections.
@@ -107,7 +107,7 @@
   Obj.removeSections(RemovePred);
 }
 
-static Error handleArgs(const CopyConfig &Config, Object &Obj) {
+static Error handleArgs(const CommonConfig &Config, Object &Obj) {
   // Only support AddSection, DumpSection, RemoveSection for now.
   for (StringRef Flag : Config.DumpSection) {
     StringRef SecName;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73820.358082.patch
Type: text/x-patch
Size: 871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210712/8caf0b98/attachment.bin>


More information about the llvm-commits mailing list