[llvm] r363066 - [llvm-dwarfdump] Simplify --ignore-case help text and documentation
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 11 06:51:18 PDT 2019
Author: jhenderson
Date: Tue Jun 11 06:51:18 2019
New Revision: 363066
URL: http://llvm.org/viewvc/llvm-project?rev=363066&view=rev
Log:
[llvm-dwarfdump] Simplify --ignore-case help text and documentation
There was a typo in the --ignore-case help text that was copied into the
llvm-dwarfdump command-guide. Additionally, this patch simplifies the
wording, since it was unnecessarily verbose: the switch applies for
searching in general and doesn't need explicitly stating different
search modes (which might go out-of-date as options are added or
removed).
Reviwed by: JDevlieghere
Differential Revision: https://reviews.llvm.org/D63133
Modified:
llvm/trunk/docs/CommandGuide/llvm-dwarfdump.rst
llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
Modified: llvm/trunk/docs/CommandGuide/llvm-dwarfdump.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CommandGuide/llvm-dwarfdump.rst?rev=363066&r1=363065&r2=363066&view=diff
==============================================================================
--- llvm/trunk/docs/CommandGuide/llvm-dwarfdump.rst (original)
+++ llvm/trunk/docs/CommandGuide/llvm-dwarfdump.rst Tue Jun 11 06:51:18 2019
@@ -53,8 +53,7 @@ OPTIONS
.. option:: -i, --ignore-case
- Ignore case distinctions in when searching entries by name
- or by regular expression.
+ Ignore case distinctions when searching.
.. option:: -n <pattern>, --name=<pattern>
Modified: llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp?rev=363066&r1=363065&r2=363066&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp (original)
+++ llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp Tue Jun 11 06:51:18 2019
@@ -141,10 +141,9 @@ static list<std::string>
"-name option can be used instead."),
value_desc("name"), cat(DwarfDumpCategory));
static alias FindAlias("f", desc("Alias for -find."), aliasopt(Find));
-static opt<bool>
- IgnoreCase("ignore-case",
- desc("Ignore case distinctions in when searching by name."),
- value_desc("i"), cat(DwarfDumpCategory));
+static opt<bool> IgnoreCase("ignore-case",
+ desc("Ignore case distinctions when searching."),
+ value_desc("i"), cat(DwarfDumpCategory));
static alias IgnoreCaseAlias("i", desc("Alias for -ignore-case."),
aliasopt(IgnoreCase));
static list<std::string> Name(
More information about the llvm-commits
mailing list