1## Check that --print-only flag works with sections. 2 3# REQUIRES: system-linux 4 5# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o 6# RUN: ld.lld %t.o -o %t.exe 7# RUN: llvm-bolt %t.exe -o %t.out --print-cfg --print-only=unused_code 2>&1 \ 8# RUN: | FileCheck %s 9 10# CHECK: Binary Function "foo" 11# CHECK-NOT: Binary Function "_start" 12 13 .text 14 .globl _start 15 .type _start, %function 16_start: 17 .cfi_startproc 18 ret 19 .cfi_endproc 20 .size _start, .-_start 21 22 .section unused_code,"ax",@progbits 23 .globl foo 24 .type foo, %function 25foo: 26 .cfi_startproc 27 ret 28 .cfi_endproc 29 .size foo, .-foo 30