1# REQUIRES: x86-registered-target 2 3## Verify llvm-bitcode-strip removes sections from object files 4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t 5# RUN: llvm-bitcode-strip -r %t -o %t2 6# RUN: llvm-readobj --macho-segment --sections %t2 | FileCheck --implicit-check-not=__LLVM %s 7 8# CHECK: Name: __text 9# CHECK-NEXT: Segment: __TEXT 10 11.section __LLVM,__bundle 12 .asciz "test" 13 14.section __LLVM,__bitcode 15 .asciz "test" 16 17.section __LLVM,__cmdline 18 .asciz "test" 19 20.section __LLVM,__swift_cmdline 21 .asciz "test" 22 23.section __LLVM,__asm 24 .asciz "test" 25 26.text 27.globl _main 28_main: 29 ret 30