From 5b4cc3f027a09bb95f67e584aaa5f0271df08cd9 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Wed, 29 Jan 2014 21:31:47 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200419 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-cov/llvm-cov.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools') diff --git a/tools/llvm-cov/llvm-cov.cpp b/tools/llvm-cov/llvm-cov.cpp index 3f52f94010..f549891694 100644 --- a/tools/llvm-cov/llvm-cov.cpp +++ b/tools/llvm-cov/llvm-cov.cpp @@ -26,20 +26,26 @@ static cl::opt SourceFile(cl::Positional, cl::Required, static cl::opt AllBlocks("a", cl::init(false), cl::desc("Display all basic blocks")); +static cl::alias AllBlocksA("all-blocks", cl::aliasopt(AllBlocks)); static cl::opt BranchProb("b", cl::init(false), cl::desc("Display branch probabilities")); +static cl::alias BranchProbA("branch-probabilities", cl::aliasopt(BranchProb)); static cl::opt 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 FuncSummary("f", cl::init(false), cl::desc("Show coverage for each function")); +static cl::alias FuncSummaryA("function-summaries", cl::aliasopt(FuncSummary)); static cl::opt 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 DumpGCOV("dump", cl::init(false), cl::cat(DebugCat), -- cgit v1.2.3