brintos

brintos / llvm-project-archived public Read only

0
0
Text · 896 B · dced8d1 Raw
33 lines · plain
1## Test the --remove-section flag.2# RUN: yaml2obj %s -o %t3# RUN: llvm-objcopy -R producers %t %t24# RUN: obj2yaml %t2 | FileCheck --implicit-check-not=producers %s5## Check that the producers section has been removed, but not the type section.6# CHECK: TYPE7 8## Requests to remove nonexistent sections are silently ignored.9# RUN: llvm-objcopy --remove-section=nonexistent=%t.sec %t 2>&1 | count 010 11## Remove the type section.12# RUN: llvm-objcopy -R TYPE %t %t313# RUN: obj2yaml %t3 | FileCheck --check-prefix=REMOVETYPE --implicit-check-not=TYPE %s14## Check that the producers section is still there.15# REMOVETYPE: producers16 17--- !WASM18FileHeader:19  Version: 0x0000000120Sections:21  - Type: TYPE22    Signatures:23      - Index: 024        ParamTypes:25          - I3226        ReturnTypes:27          - F3228  - Type: CUSTOM29    Name: producers30    Tools:31      - Name:   clang32        Version: 9.0.033