Skip to content

Commit f4421ff

Browse files
authored
[llvm][dwarfdump][docs] Mention DW_AT_linkage_name in --name doc (#164433)
The `llvm-dwarfdump --name=<name>` option accepts `DW_AT_linkage_name` names too.
1 parent 8dbc152 commit f4421ff

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

llvm/docs/CommandGuide/llvm-dwarfdump.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ OPTIONS
8383
.. option:: -n <name>, --name=<name>
8484

8585
Find and print all debug info entries whose name
86-
(`DW_AT_name` attribute) is <name>.
86+
(`DW_AT_name`/`DW_AT_linkage_name` attribute) is <name>.
8787

8888
.. option:: --lookup=<address>
8989

llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,10 @@ static alias IgnoreCaseAlias("i", desc("Alias for --ignore-case."),
202202
aliasopt(IgnoreCase), cl::NotHidden);
203203
static list<std::string> Name(
204204
"name",
205-
desc("Find and print all debug info entries whose name (DW_AT_name "
206-
"attribute) matches the exact text in <pattern>. When used with the "
207-
"the -regex option <pattern> is interpreted as a regular expression."),
205+
desc("Find and print all debug info entries whose name "
206+
"(DW_AT_name/DW_AT_linkage_name attribute) matches the exact text "
207+
"in <pattern>. When used with the the -regex option <pattern> is "
208+
"interpreted as a regular expression."),
208209
value_desc("pattern"), cat(DwarfDumpCategory));
209210
static alias NameAlias("n", desc("Alias for --name"), aliasopt(Name),
210211
cl::NotHidden);

0 commit comments

Comments
 (0)