diff options
| author | James Henderson <jh7370@my.bristol.ac.uk> | 2019-06-25 10:36:15 +0000 |
|---|---|---|
| committer | James Henderson <jh7370@my.bristol.ac.uk> | 2019-06-25 10:36:15 +0000 |
| commit | ecd9348aa176aa535cd041ab848a043a10824b9d (patch) | |
| tree | 953b241b73089de1d7132b72609bd71116638a44 /llvm/docs/CommandGuide | |
| parent | cdd43eac4fe3a4fbfca30d95d2032c23b3bf838d (diff) | |
| download | bcm5719-llvm-ecd9348aa176aa535cd041ab848a043a10824b9d.tar.gz bcm5719-llvm-ecd9348aa176aa535cd041ab848a043a10824b9d.zip | |
[docs][llvm-cxxfilt] Write llvm-cxxfilt documentation
There was a stub for llvm-cxxfilt, but it didn't describe the options.
Additionally, it was in markdown, which was causing issues, so as
discussed in https://reviews.llvm.org/D63211, this change replaces the
existing stub with an RST file.
Reviewed by: MaskRay, mattd
Differential Revision: https://reviews.llvm.org/D63722
llvm-svn: 364287
Diffstat (limited to 'llvm/docs/CommandGuide')
| -rw-r--r-- | llvm/docs/CommandGuide/llvm-cxxfilt.md | 10 | ||||
| -rw-r--r-- | llvm/docs/CommandGuide/llvm-cxxfilt.rst | 79 |
2 files changed, 79 insertions, 10 deletions
diff --git a/llvm/docs/CommandGuide/llvm-cxxfilt.md b/llvm/docs/CommandGuide/llvm-cxxfilt.md deleted file mode 100644 index e687cd27184..00000000000 --- a/llvm/docs/CommandGuide/llvm-cxxfilt.md +++ /dev/null @@ -1,10 +0,0 @@ -# llvm-cxxfilt - a symbol demangler - -## SYNOPSIS - -**llvm-cxxfilt** [*options*] - -## DESCRIPTION - -**llvm-cxxfilt** is symbol demangler that can be used as a replacement for the -GNU **c++filt** tool. diff --git a/llvm/docs/CommandGuide/llvm-cxxfilt.rst b/llvm/docs/CommandGuide/llvm-cxxfilt.rst new file mode 100644 index 00000000000..aad1ccda9d6 --- /dev/null +++ b/llvm/docs/CommandGuide/llvm-cxxfilt.rst @@ -0,0 +1,79 @@ +llvm-cxxfilt - LLVM symbol name demangler +========================================= + +SYNOPSIS +-------- + +:program:`llvm-cxxfilt` [*options*] [*mangled names...*] + +DESCRIPTION +----------- + +:program:`llvm-cxxfilt` is a symbol demangler that can be used as a replacement +for the GNU :program:`c++filt` tool. It takes a series of symbol names and +prints their demangled form on the standard output stream. If a name cannot be +demangled, it is simply printed as is. + +If no names are specified on the command-line, names are read interactively from +the standard input stream. When reading names from standard input, each input +line is split on characters that are not part of valid Itanium name manglings, +i.e. characters that are not alphanumeric, '.', '$', or '_'. Separators between +names are copied to the output as is. + +EXAMPLE +------- + +.. code-block:: console + + $ llvm-cxxfilt _Z3foov _Z3bari not_mangled + foo() + bar(int) + not_mangled + $ cat input.txt + | _Z3foov *** _Z3bari *** not_mangled | + $ llvm-cxxfilt < input.txt + | foo() *** bar(int) *** not_mangled | + +OPTIONS +------- + +.. option:: --format=<value>, -s + + Mangling scheme to assume. Valid values are ``auto`` (default, auto-detect the + style) and ``gnu`` (assume GNU/Itanium style). + +.. option:: --help, -h + + Print a summary of command line options. + +.. option:: --help-list + + Print an uncategorized summary of command line options. + +.. option:: --strip-underscore, -_ + + Discard a single leading underscore, if present, from each input name before + demangling. + +.. option:: --types, -t + + Attempt to demangle names as type names as well as function names. + +.. option:: --version + + Display the version of this program. + +.. option:: @<FILE> + + Read command-line options from response file `<FILE>`. + +EXIT STATUS +----------- + +:program:`llvm-cxxfilt` returns 0 unless it encounters a usage error, in which +case a non-zero exit code is returned. + +SEE ALSO +-------- + +:manpage:`llvm-nm(1)` |

