aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/llvm-cov.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-01-29 21:31:47 +0000
committerJustin Bogner <mail@justinbogner.com>2014-01-29 21:31:47 +0000
commitb35695869a58aeff179833b56e6b6b15e7b8384d (patch)
tree20b2403230ef32c15b1f40897552335223fd8064 /llvm/tools/llvm-cov/llvm-cov.cpp
parent84e7a35ca804f835b3d9bfd4250b28a1374c6627 (diff)
downloadllvm-b35695869a58aeff179833b56e6b6b15e7b8384d.zip
llvm-b35695869a58aeff179833b56e6b6b15e7b8384d.tar.gz
llvm-b35695869a58aeff179833b56e6b6b15e7b8384d.tar.bz2
llvm-cov: Accept the long forms of gcov options
This is a bit imperfect, as these options don't show up in the help as is and single dash variants are accepted, which differs from gcov. Unfortunately, this seems to be as good as it gets with the cl::opt machinery, so it'll do as an incremental step. llvm-svn: 200419
Diffstat (limited to 'llvm/tools/llvm-cov/llvm-cov.cpp')
-rw-r--r--llvm/tools/llvm-cov/llvm-cov.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/tools/llvm-cov/llvm-cov.cpp b/llvm/tools/llvm-cov/llvm-cov.cpp
index 3f52f94..f549891 100644
--- a/llvm/tools/llvm-cov/llvm-cov.cpp
+++ b/llvm/tools/llvm-cov/llvm-cov.cpp
@@ -26,20 +26,26 @@ static cl::opt<std::string> SourceFile(cl::Positional, cl::Required,
static cl::opt<bool> AllBlocks("a", cl::init(false),
cl::desc("Display all basic blocks"));
+static cl::alias AllBlocksA("all-blocks", cl::aliasopt(AllBlocks));
static cl::opt<bool> BranchProb("b", cl::init(false),
cl::desc("Display branch probabilities"));
+static cl::alias BranchProbA("branch-probabilities", cl::aliasopt(BranchProb));
static cl::opt<bool> BranchCount("c", cl::init(false),
cl::desc("Display branch counts instead "
"of percentages (requires -b)"));
+static cl::alias BranchCountA("branch-counts", cl::aliasopt(BranchCount));
static cl::opt<bool> FuncSummary("f", cl::init(false),
cl::desc("Show coverage for each function"));
+static cl::alias FuncSummaryA("function-summaries", cl::aliasopt(FuncSummary));
static cl::opt<bool> UncondBranch("u", cl::init(false),
cl::desc("Display unconditional branch info "
"(requires -b)"));
+static cl::alias UncondBranchA("unconditional-branches",
+ cl::aliasopt(UncondBranch));
static cl::OptionCategory DebugCat("Internal and debugging options");
static cl::opt<bool> DumpGCOV("dump", cl::init(false), cl::cat(DebugCat),