Index: test/wasm/strip-all.test =================================================================== --- test/wasm/strip-all.test +++ test/wasm/strip-all.test @@ -1,5 +1,9 @@ RUN: llc -filetype=obj %p/Inputs/start.ll -o %t.start.o -RUN: wasm-ld --strip-debug -o %t.wasm %t.start.o +RUN: wasm-ld --strip-all -o %t.wasm %t.start.o +RUN: obj2yaml %t.wasm | FileCheck %s + +# Test alias -s +RUN: wasm-ld -s -o %t.wasm %t.start.o RUN: obj2yaml %t.wasm | FileCheck %s # Check that there is no name section Index: test/wasm/strip-debug.test =================================================================== --- test/wasm/strip-debug.test +++ test/wasm/strip-debug.test @@ -2,5 +2,9 @@ RUN: wasm-ld --strip-debug -o %t.wasm %t.start.o RUN: obj2yaml %t.wasm | FileCheck %s +# Test alias -S +RUN: wasm-ld -S -o %t.wasm %t.start.o +RUN: obj2yaml %t.wasm | FileCheck %s + # Check that there is no name section CHECK-NOT: Name: name Index: wasm/Options.td =================================================================== --- wasm/Options.td +++ wasm/Options.td @@ -149,6 +149,8 @@ def: Flag<["-"], "i">, Alias; def: Flag<["-"], "m">, Alias; def: Flag<["-"], "r">, Alias; +def: Flag<["-"], "s">, Alias, HelpText<"Alias for --strip-all">; +def: Flag<["-"], "S">, Alias, HelpText<"Alias for --strip-debug">; def: JoinedOrSeparate<["-"], "u">, Alias; // LTO-related options.