[WedAssembly] Add -s and -S alias for --strip-all and --strip-debug
llvm-svn: 345767
This commit is contained in:
parent
f8405bf46b
commit
59d52f8040
|
@ -0,0 +1,10 @@
|
||||||
|
RUN: llc -filetype=obj %p/Inputs/start.ll -o %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
|
||||||
|
CHECK-NOT: Name: name
|
|
@ -2,5 +2,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-debug -o %t.wasm %t.start.o
|
||||||
RUN: obj2yaml %t.wasm | FileCheck %s
|
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 that there is no name section
|
||||||
CHECK-NOT: Name: name
|
CHECK-NOT: Name: name
|
||||||
|
|
|
@ -149,6 +149,8 @@ def: Flag<["-"], "E">, Alias<export_dynamic>, HelpText<"Alias for --export-dynam
|
||||||
def: Flag<["-"], "i">, Alias<initial_memory>;
|
def: Flag<["-"], "i">, Alias<initial_memory>;
|
||||||
def: Flag<["-"], "m">, Alias<max_memory>;
|
def: Flag<["-"], "m">, Alias<max_memory>;
|
||||||
def: Flag<["-"], "r">, Alias<relocatable>;
|
def: Flag<["-"], "r">, Alias<relocatable>;
|
||||||
|
def: Flag<["-"], "s">, Alias<strip_all>, HelpText<"Alias for --strip-all">;
|
||||||
|
def: Flag<["-"], "S">, Alias<strip_debug>, HelpText<"Alias for --strip-debug">;
|
||||||
def: JoinedOrSeparate<["-"], "u">, Alias<undefined>;
|
def: JoinedOrSeparate<["-"], "u">, Alias<undefined>;
|
||||||
|
|
||||||
// LTO-related options.
|
// LTO-related options.
|
||||||
|
|
Loading…
Reference in New Issue