llvm-cov: Added -c option for branch counts.

This will cause llvm-cov to output branch counts instead of branch
probabilities. -b must be enabled.

Also updated tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Yuchen Wu
2013-12-18 18:40:15 +00:00
parent 25acded1b0
commit f6358f3eef
6 changed files with 219 additions and 17 deletions

View File

@@ -36,11 +36,12 @@ namespace GCOV {
/// GCOVOptions - A struct for passing gcov options between functions.
struct GCOVOptions {
GCOVOptions(bool A, bool B, bool U) :
AllBlocks(A), BranchProb(B), UncondBranch(U) {}
GCOVOptions(bool A, bool B, bool C, bool U) :
AllBlocks(A), BranchInfo(B), BranchCount(C), UncondBranch(U) {}
bool AllBlocks;
bool BranchProb;
bool BranchInfo;
bool BranchCount;
bool UncondBranch;
};