[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / tools / llvm-objcopy / wasm / strip-debug.test
blob2747c3bab742ea4b9aacca3db540af1a58da359c
1 ## Test that debug sections (but not linking or names) are stripped with --strip-debug
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-strip --strip-debug %t
4 # RUN: obj2yaml %t | FileCheck --implicit-check-not=.debug %s
6 # CHECK:      Sections:
7 # CHECK-NEXT:   - Type: TYPE
8 # CHECK:          Name: linking
9 # CHECK:          Name: name
10 # CHECK-NEXT:     FunctionNames:
11 # CHECK:          Name: producers
13 --- !WASM
14 FileHeader:
15   Version: 0x00000001
16 Sections:
17   - Type: TYPE
18     Signatures:
19       - Index: 0
20         ParamTypes: []
21         ReturnTypes: []
22   - Type: FUNCTION
23     FunctionTypes: [ 0 ]
24   - Type: CODE
25     Functions:
26       - Index: 0
27         Locals: []
28         Body: 0B
29   - Type: CUSTOM
30     Name: .debug_info
31     Payload: CAFE1234
32   - Type:            CUSTOM
33     Name:            linking
34     Version:         2
35     SymbolTable:
36       - Index:           0
37         Kind:            FUNCTION
38         Name:            foo
39         Flags:           [ BINDING_LOCAL ]
40         Function:        0
41   - Type: CUSTOM
42     Name: name
43     FunctionNames:
44      - Index:          0
45        Name:           foo
46   - Type: CUSTOM
47     Name: producers
48     Tools:
49       - Name:   clang
50         Version: 9.0.0
51   - Type: CUSTOM
52     Name: .debug_line
53     Payload: DEADBEEF