From c649f29c24c9fc1502d8d53e0c96c3d24b31de1a Mon Sep 17 00:00:00 2001 From: Daniel Thornburgh Date: Wed, 17 May 2023 10:57:54 -0700 Subject: [llvm-nm] Add --line-numbers flag This parallels the binutils/BSD flag of the same name. Debugging information is loaded to print line number information for symbols. Defined symbols are symbolized by their section addresses, and undefined symbols by their first text reloc with line info. Differential Revision: https://reviews.llvm.org/D150987 --- llvm/docs/CommandGuide/llvm-nm.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/docs/CommandGuide') diff --git a/llvm/docs/CommandGuide/llvm-nm.rst b/llvm/docs/CommandGuide/llvm-nm.rst index 4b1290a..7067bb0 100644 --- a/llvm/docs/CommandGuide/llvm-nm.rst +++ b/llvm/docs/CommandGuide/llvm-nm.rst @@ -190,6 +190,12 @@ OPTIONS Print just the symbol names. Alias for `--format=just-symbols``. +.. option:: --line-numbers, -l + + Use debugging information to print the filenames and line numbers where + symbols are defined. Undefined symbols have the location of their first + relocation printed instead. + .. option:: -m Use Darwin format. Alias for ``--format=darwin``. -- cgit v1.1