[llvm] f4421ff - [llvm][dwarfdump][docs] Mention DW_AT_linkage_name in --name doc (#164433)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 21 10:00:12 PDT 2025
Author: Michael Buch
Date: 2025-10-21T18:00:08+01:00
New Revision: f4421ffe29e846fb93e61dba04adeb963367506e
URL: https://github.com/llvm/llvm-project/commit/f4421ffe29e846fb93e61dba04adeb963367506e
DIFF: https://github.com/llvm/llvm-project/commit/f4421ffe29e846fb93e61dba04adeb963367506e.diff
LOG: [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.
Added:
Modified:
llvm/docs/CommandGuide/llvm-dwarfdump.rst
llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
Removed:
################################################################################
diff --git a/llvm/docs/CommandGuide/llvm-dwarfdump.rst b/llvm/docs/CommandGuide/llvm-dwarfdump.rst
index 27ad4226e6cf9..137830259eb64 100644
--- a/llvm/docs/CommandGuide/llvm-dwarfdump.rst
+++ b/llvm/docs/CommandGuide/llvm-dwarfdump.rst
@@ -83,7 +83,7 @@ OPTIONS
.. option:: -n <name>, --name=<name>
Find and print all debug info entries whose name
- (`DW_AT_name` attribute) is <name>.
+ (`DW_AT_name`/`DW_AT_linkage_name` attribute) is <name>.
.. option:: --lookup=<address>
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index 79f05278c329d..11eb58ea911df 100644
--- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -202,9 +202,10 @@ static alias IgnoreCaseAlias("i", desc("Alias for --ignore-case."),
aliasopt(IgnoreCase), cl::NotHidden);
static list<std::string> Name(
"name",
- desc("Find and print all debug info entries whose name (DW_AT_name "
- "attribute) matches the exact text in <pattern>. When used with the "
- "the -regex option <pattern> is interpreted as a regular expression."),
+ desc("Find and print all debug info entries whose name "
+ "(DW_AT_name/DW_AT_linkage_name attribute) matches the exact text "
+ "in <pattern>. When used with the the -regex option <pattern> is "
+ "interpreted as a regular expression."),
value_desc("pattern"), cat(DwarfDumpCategory));
static alias NameAlias("n", desc("Alias for --name"), aliasopt(Name),
cl::NotHidden);
More information about the llvm-commits
mailing list