1 ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -function-sections < %s | FileCheck %s
2 ; RUN: llc -filetype=obj -o %t -mtriple=x86_64-unknown-linux-gnu -function-sections < %s
3 ; RUN: llvm-objdump --disassemble-all %t | FileCheck %s --check-prefix=CHECK-OBJ
5 define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" {
6 ; CHECK: .section .text.foo,"ax",@progbits
8 ; CHECK: .section xray_instr_map,"ao",@progbits,foo{{$}}
12 define i32 @bar() nounwind noinline uwtable "function-instrument"="xray-always" comdat($bar) {
13 ; CHECK: .section .text.bar,"axG",@progbits,bar,comdat
15 ; CHECK: .section xray_instr_map,"aoG",@progbits,bar,bar,comdat{{$}}
18 ; CHECK-OBJ: section xray_instr_map: