summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-profdata/same-filename.test
Commit message (Collapse)AuthorAgeFilesLines
* [llvm-profdata] Don't make the output overwrite the input file.Haojian Wu2019-07-091-4/+4
| | | | | | | Some file systems may not allow this behavior, the test fails on our internal system ("Permission denied"). llvm-svn: 365450
* [llvm-profdata] Fix buildbot failure on llvm-clang-x86_64-expensive-checks-winRong Xu2019-07-081-1/+1
| | | | | | | This fixes buildbot failure in LLVM on llvm-clang-x86_64-expensive-checks-win from r365386. llvm-svn: 365401
* llvm-profdata] Handle the cases of overlapping input file and output fileRong Xu2019-07-081-0/+27
Currently llvm-profdata does not expect the same file name for the input profile and the output profile. >llvm-profdata merge A.profraw B.profraw -o B.profraw The above command runs successfully but the resulted B.profraw is not correct. This patch fixes the issue by moving the initialization of writer after loading the profile. For the show command, the following will report a confusing error of "Empty raw profile file": >llvm-profdata show B.profraw -o B.profraw It's harder to fix as we need to output something before loading the input profile. I don't think that a fix for this is worth the effort. I just make the error explicit for the show command. Differential Revision: https://reviews.llvm.org/D64360 llvm-svn: 365386
OpenPOWER on IntegriCloud