[llvm] f3bfe1b - Have yaml2obj describe all options in --help
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 24 07:45:06 PST 2021
Author: Paul Robinson
Date: 2021-11-24T07:44:52-08:00
New Revision: f3bfe1b41876add39d080067b504baa2ace97ecf
URL: https://github.com/llvm/llvm-project/commit/f3bfe1b41876add39d080067b504baa2ace97ecf
DIFF: https://github.com/llvm/llvm-project/commit/f3bfe1b41876add39d080067b504baa2ace97ecf.diff
LOG: Have yaml2obj describe all options in --help
Differential Revision: https://reviews.llvm.org/D114538
Added:
Modified:
llvm/tools/yaml2obj/yaml2obj.cpp
Removed:
################################################################################
diff --git a/llvm/tools/yaml2obj/yaml2obj.cpp b/llvm/tools/yaml2obj/yaml2obj.cpp
index d18b2c17512b..8a44c44eedc0 100644
--- a/llvm/tools/yaml2obj/yaml2obj.cpp
+++ b/llvm/tools/yaml2obj/yaml2obj.cpp
@@ -37,7 +37,8 @@ cl::opt<std::string> Input(cl::Positional, cl::desc("<input file>"),
cl::list<std::string>
D("D", cl::Prefix,
cl::desc("Defined the specified macros to their specified "
- "definition. The syntax is <macro>=<definition>"));
+ "definition. The syntax is <macro>=<definition>"),
+ cl::cat(Cat));
cl::opt<unsigned>
DocNum("docnum", cl::init(1),
@@ -47,7 +48,8 @@ cl::opt<unsigned>
static cl::opt<uint64_t> MaxSize(
"max-size", cl::init(10 * 1024 * 1024),
cl::desc(
- "Sets the maximum allowed output size (0 means no limit) [ELF only]"));
+ "Sets the maximum allowed output size (0 means no limit) [ELF only]"),
+ cl::cat(Cat));
cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"),
cl::value_desc("filename"), cl::init("-"),
More information about the llvm-commits
mailing list