mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01: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:
parent
04c57e44c9
commit
fa3a9f7a98
@ -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>.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 "
|
||||
|
Loading…
x
Reference in New Issue
Block a user