[PATCH] D63013: [llvm-dwarfdump] Add --out-file to help text

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 7 10:01:10 PDT 2019


jhenderson created this revision.
jhenderson added reviewers: probinson, dblaikie, JDevlieghere.
Herald added a subscriber: aprantl.
Herald added a project: LLVM.

The --out-file (long form of -o) is in the documentation, but not in the llvm-dwarfdump help text. This patch adds it by adding the category that it was (presumably) accidentally missing.


Repository:
  rL LLVM

https://reviews.llvm.org/D63013

Files:
  test/tools/llvm-dwarfdump/cmdline.test
  tools/llvm-dwarfdump/llvm-dwarfdump.cpp


Index: tools/llvm-dwarfdump/llvm-dwarfdump.cpp
===================================================================
--- tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -162,7 +162,7 @@
 static opt<std::string>
     OutputFilename("out-file", cl::init("-"),
                    cl::desc("Redirect output to the specified file."),
-                   cl::value_desc("filename"));
+                   cl::value_desc("filename"), cat(DwarfDumpCategory));
 static alias OutputFilenameAlias("o", desc("Alias for -out-file."),
                                  aliasopt(OutputFilename),
                                  cat(DwarfDumpCategory));
Index: test/tools/llvm-dwarfdump/cmdline.test
===================================================================
--- test/tools/llvm-dwarfdump/cmdline.test
+++ test/tools/llvm-dwarfdump/cmdline.test
@@ -13,6 +13,7 @@
 HELP: -ignore-case
 HELP: -lookup
 HELP: -name
+HELP: -out-file=<filename>
 HELP: -parent-recurse-depth=<N>
 HELP: -recurse-depth=<N>
 HELP: -regex


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63013.203576.patch
Type: text/x-patch
Size: 1044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190607/b2a675ca/attachment.bin>


More information about the llvm-commits mailing list