mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-15 21:46:53 +00:00

When a basic sample profile is gathered without LBR info, the generated profile contains a "no-lbr" tag in the first line of the fdata file. This PR fixes merge-fdata to recognize and save this tag to the output file.
21 lines
420 B
Plaintext
21 lines
420 B
Plaintext
## Check that merge-fdata correctly handles merging two fdata files with both boltedcollection and no_lbr tags.
|
|
|
|
# REQUIRES: system-linux
|
|
|
|
# RUN: split-file %s %t
|
|
# RUN: merge-fdata %t/a.fdata %t/b.fdata -o %t/merged.fdata
|
|
# RUN: FileCheck %s --input-file %t/merged.fdata
|
|
|
|
# CHECK: boltedcollection
|
|
# CHECK: no_lbr
|
|
# CHECK: main 2
|
|
|
|
#--- a.fdata
|
|
boltedcollection
|
|
no_lbr
|
|
main 1
|
|
#--- b.fdata
|
|
boltedcollection
|
|
no_lbr
|
|
main 1
|