summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2019-06-11 13:51:18 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2019-06-11 13:51:18 +0000
commit9487963244e4c805cf0f5798d903bdb10012b59d (patch)
tree332fb5824944994b37cac6aa9a18b20ee162257f
parentbe7f5c71584c2cdbb9d47f9f7ba8b9a955c94b05 (diff)
downloadbcm5719-llvm-9487963244e4c805cf0f5798d903bdb10012b59d.tar.gz
bcm5719-llvm-9487963244e4c805cf0f5798d903bdb10012b59d.zip
[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 llvm-svn: 363066
-rw-r--r--llvm/docs/CommandGuide/llvm-dwarfdump.rst3
-rw-r--r--llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp7
2 files changed, 4 insertions, 6 deletions
diff --git a/llvm/docs/CommandGuide/llvm-dwarfdump.rst b/llvm/docs/CommandGuide/llvm-dwarfdump.rst
index f8e30ebaa17..acb85f55d67 100644
--- a/llvm/docs/CommandGuide/llvm-dwarfdump.rst
+++ b/llvm/docs/CommandGuide/llvm-dwarfdump.rst
@@ -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>
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index 4109b6f90c2..371e9406e1d 100644
--- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -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(
OpenPOWER on IntegriCloud