mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-15 21:46:53 +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.
16 lines
332 B
Plaintext
16 lines
332 B
Plaintext
## Check that merge-fdata tool correctly reports error message
|
|
## when trying to merge 'no-lbr' and 'lbr' profiles
|
|
|
|
# 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 no_lbr
|
|
|
|
#--- a.fdata
|
|
no_lbr
|
|
main 1
|
|
#--- b.fdata
|
|
main 1
|