1 ;; Verify that the BB address map is not emitted for empty functions.
2 ; RUN: llc < %s -mtriple=x86_64 -basic-block-sections=labels | FileCheck %s --check-prefixes=CHECK,BASIC
3 ; RUN: llc < %s -mtriple=x86_64 -basic-block-sections=labels -pgo-analysis-map=func-entry-count,bb-freq | FileCheck %s --check-prefixes=CHECK,PGO
5 define void @empty_func() {
9 ; CHECK: {{^ *}}.text{{$}}
11 ; CHECK: .Lfunc_begin0:
12 ; CHECK-NOT: .section .llvm_bb_addr_map
20 ; CHECK: .Lfunc_begin1:
21 ; CHECK: .section .llvm_bb_addr_map,"o",@llvm_bb_addr_map,.text{{$}}
22 ; CHECK-NEXT: .byte 2 # version
23 ; BASIC-NEXT: .byte 0 # feature
24 ; PGO-NEXT: .byte 3 # feature
25 ; CHECK-NEXT: .quad .Lfunc_begin1 # function address