From edcd7c718f9312d3ca6d3501d8b844760b648cd3 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Wed, 23 Apr 2014 21:44:48 +0000 Subject: llvm-cov: Allow short options to be grouped git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207034 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-cov/llvm-cov.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/llvm-cov/llvm-cov.cpp b/tools/llvm-cov/llvm-cov.cpp index 587ee11899..8e2cf95153 100644 --- a/tools/llvm-cov/llvm-cov.cpp +++ b/tools/llvm-cov/llvm-cov.cpp @@ -26,20 +26,20 @@ using namespace llvm; static cl::opt SourceFile(cl::Positional, cl::Required, cl::desc("SOURCEFILE")); -static cl::opt AllBlocks("a", cl::init(false), +static cl::opt AllBlocks("a", cl::Grouping, 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), +static cl::opt BranchProb("b", cl::Grouping, 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), +static cl::opt BranchCount("c", cl::Grouping, 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), +static cl::opt FuncSummary("f", cl::Grouping, cl::init(false), cl::desc("Show coverage for each function")); static cl::alias FuncSummaryA("function-summaries", cl::aliasopt(FuncSummary)); @@ -49,11 +49,11 @@ ObjectDir("o", cl::value_desc("DIR|FILE"), cl::init(""), static cl::alias ObjectDirA("object-directory", cl::aliasopt(ObjectDir)); static cl::alias ObjectDirB("object-file", cl::aliasopt(ObjectDir)); -static cl::opt PreservePaths("p", cl::init(false), +static cl::opt PreservePaths("p", cl::Grouping, cl::init(false), cl::desc("Preserve path components")); static cl::alias PreservePathsA("preserve-paths", cl::aliasopt(PreservePaths)); -static cl::opt UncondBranch("u", cl::init(false), +static cl::opt UncondBranch("u", cl::Grouping, cl::init(false), cl::desc("Display unconditional branch info " "(requires -b)")); static cl::alias UncondBranchA("unconditional-branches", -- cgit v1.2.3