mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 17:46:49 +00:00

Eliminate splitting the buffer into lines, and use `std::getline` directly. Simplify no_lbr and boltedcollection handling as well. Test Plan: For a large fdata file (200MB), fstream version is ~10% faster.
17 lines
358 B
Plaintext
17 lines
358 B
Plaintext
## Check that merge-fdata doesn't incorrectly merge two fdata files with boltedcollection and no_lbr tags.
|
|
|
|
# REQUIRES: system-linux
|
|
|
|
# RUN: split-file %s %t
|
|
# RUN: not merge-fdata %t/a.fdata %t/b.fdata 2>&1 | FileCheck %s
|
|
|
|
# CHECK: cannot mix profile with and without boltedcollection
|
|
|
|
#--- a.fdata
|
|
boltedcollection
|
|
no_lbr
|
|
main 1
|
|
#--- b.fdata
|
|
no_lbr
|
|
main 1
|