brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · e76de46 Raw
47 lines · plain
1## Test that debug, name, and producers sections are stripped with --strip-all.2## Other sections (unknown to LLVM, such as foo) are not stripped by --strip-all.3# RUN: yaml2obj %s -o %t4# RUN: llvm-strip --strip-all %t5# RUN: obj2yaml %t | FileCheck --implicit-check-not producers --implicit-check-not .debug --implicit-check-not name %s6 7## The default no-arg behavior is the same as --strip-all.8# RUN: llvm-strip %t9# RUN: obj2yaml %t | FileCheck --implicit-check-not producers --implicit-check-not .debug --implicit-check-not name %s10 11# CHECK:      Sections:12# CHECK-NEXT:   - Type: TYPE13# CHECK:          Name: foo14 15--- !WASM16FileHeader:17  Version: 0x0000000118Sections:19  - Type: TYPE20    Signatures:21      - Index: 022        ParamTypes: []23        ReturnTypes: []24  - Type: FUNCTION25    FunctionTypes: [ 0 ]26  - Type: CODE27    Functions:28      - Index: 029        Locals: []30        Body: 0B31  - Type: CUSTOM32    Name: name33    FunctionNames:34     - Index:          035       Name:           foo36  - Type: CUSTOM37    Name: producers38    Tools:39      - Name:   clang40        Version: 9.0.041  - Type: CUSTOM42    Name: .debug_info43    Payload: DEADBEEF44  - Type: CUSTOM45    Name: foo46    Payload: CAFE47