1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[llvm-dwarfdump] Add -o to help text and remove --out-file from doc

-o is in the documentation, but not in the llvm-dwarfdump help text.
This patch adds it by inverting the -o and --out-file aliasing. It also
removes --out-file from the documentation, since we don't really want
people to be using this switch in practice.

Reviewed by: aprantl, JDevlieghere, dblaikie

Differential Revision: https://reviews.llvm.org/D63013

llvm-svn: 363044
This commit is contained in:
James Henderson 2019-06-11 10:20:07 +00:00
parent 04c57e44c9
commit fa3a9f7a98
3 changed files with 8 additions and 8 deletions

View File

@ -69,7 +69,7 @@ OPTIONS
Lookup <address> in the debug information and print out the file,
function, block, and line table details.
.. option:: -o <path>, --out-file=<path>
.. option:: -o <path>
Redirect output to a file specified by <path>.

View File

@ -1,5 +1,5 @@
RUN: llvm-dwarfdump -h 2>&1 | FileCheck --check-prefix=HELP %s
RUN: llvm-dwarfdump --help 2>&1 | FileCheck --check-prefix=HELP %s
RUN: llvm-dwarfdump -h 2>&1 | FileCheck --check-prefix=HELP %s --implicit-check-not=out-file
RUN: llvm-dwarfdump --help 2>&1 | FileCheck --check-prefix=HELP %s --implicit-check-not=out-file
HELP: USAGE: llvm-dwarfdump{{[^ ]*}} [options] <input object files or .dSYM bundles>
HELP-NOT: -reverse-iterate
HELP: Color Options
@ -13,6 +13,7 @@ HELP: -find
HELP: -ignore-case
HELP: -lookup
HELP: -name
HELP: -o=<filename>
HELP: -parent-recurse-depth=<N>
HELP: -recurse-depth=<N>
HELP: -regex

View File

@ -160,12 +160,11 @@ static opt<uint64_t>
"available file, function, block and line table details."),
value_desc("address"), cat(DwarfDumpCategory));
static opt<std::string>
OutputFilename("out-file", cl::init("-"),
OutputFilename("o", cl::init("-"),
cl::desc("Redirect output to the specified file."),
cl::value_desc("filename"));
static alias OutputFilenameAlias("o", desc("Alias for -out-file."),
aliasopt(OutputFilename),
cat(DwarfDumpCategory));
cl::value_desc("filename"), cat(DwarfDumpCategory));
static alias OutputFilenameAlias("out-file", desc("Alias for -o."),
aliasopt(OutputFilename));
static opt<bool>
UseRegex("regex",
desc("Treat any <pattern> strings as regular expressions when "