[utils] Teach the code coverage prep script about --restrict
authorVedant Kumar <vsk@apple.com>
Thu, 22 Sep 2016 21:49:49 +0000 (21:49 +0000)
committerVedant Kumar <vsk@apple.com>
Thu, 22 Sep 2016 21:49:49 +0000 (21:49 +0000)
commit547ebad0b9843b3a5416195fd787281c8e8e7bd3
treeca75ffc28a4b205a33324171c1d72c422e1da292
parent4610367cdfc25caa6d15ee7befe78b196f05cf49
[utils] Teach the code coverage prep script about --restrict

Add two options to the code coverage artifact prep script:

  * --use-existing-profdata: Use an existing indexed profile instead of
    merging the same profiles again.
  * --restrict: Restrict the coverage reporting to the given list of
    source directories.

With this in place, we can teach the coverage bot how to prepare
separate reports for each of the llvm tools.

llvm-svn: 282204
llvm/utils/prepare-code-coverage-artifact.py