Compiler projects using llvm
## Test the --remove-section flag.
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy -R producers %t %t2
# RUN: obj2yaml %t2 | FileCheck --implicit-check-not=producers %s
## Check that the producers section has been removed, but not the type section.
# CHECK: TYPE

## Requests to remove nonexistent sections are silently ignored.
# RUN: llvm-objcopy --remove-section=nonexistent=%t.sec %t 2>&1 | count 0

## Remove the type section.
# RUN: llvm-objcopy -R TYPE %t %t3
# RUN: obj2yaml %t3 | FileCheck --check-prefix=REMOVETYPE --implicit-check-not=TYPE %s
## Check that the producers section is still there.
# REMOVETYPE: producers

--- !WASM
FileHeader:
  Version: 0x00000001
Sections:
  - Type: TYPE
    Signatures:
      - Index: 0
        ParamTypes:
          - I32
        ReturnTypes:
          - F32
  - Type: CUSTOM
    Name: producers
    Tools:
      - Name:   clang
        Version: 9.0.0