Man page - llvm-cxxmap-17(1)
Packages contains this manual
- llvm-bcanalyzer-17(1)
- llvm-nm-17(1)
- llvm-lib-17(1)
- llvm-diff-17(1)
- llvm-libtool-darwin-17(1)
- llvm-lipo-17(1)
- mlir-tblgen-17(1)
- tblgen-17(1)
- llvm-dwarfutil-17(1)
- llvm-locstats-17(1)
- llvm-pdbutil-17(1)
- llvm-strings-17(1)
- llvm-link-17(1)
- llvm-install-name-tool-17(1)
- lldb-tblgen-17(1)
- llvm-ar-17(1)
- llvm-objdump-17(1)
- llvm-opt-report-17(1)
- llvm-extract-17(1)
- llvm-cxxfilt-17(1)
- llvm-mca-17(1)
- llvm-tli-checker-17(1)
- llvm-otool-17(1)
- llvm-tblgen-17(1)
- lit-17(1)
- llvm-dis-17(1)
- llvm-as-17(1)
- bugpoint-17(1)
- llvm-remarkutil-17(1)
- llvm-reduce-17(1)
- llvm-readobj-17(1)
- llc-17(1)
- llvm-exegesis-17(1)
- llvm-objcopy-17(1)
- llvm-config-17(1)
- llvm-profgen-17(1)
- llvm-ranlib-17(1)
- llvm-addr2line-17(1)
- llvm-strip-17(1)
- clang-tblgen-17(1)
- llvm-debuginfo-analyzer-17(1)
- dsymutil-17(1)
- llvm-cxxmap-17(1)
- llvm-symbolizer-17(1)
- llvm-dwarfdump-17(1)
- llvm-stress-17(1)
- llvm-mc-17(1)
- llvm-profdata-17(1)
- llvm-readelf-17(1)
- llvm-ifs-17(1)
- opt-17(1)
- llvm-cov-17(1)
- llvm-remark-size-diff-17(1)
- llvm-size-17(1)
- llvm-rtdyld-17(1)
apt-get install llvm-17
Manual
LLVM-CXXMAP
NAMESYNOPSIS
DESCRIPTION
OPTIONS
REMAPPING FILE
AUTHOR
COPYRIGHT
NAME
llvm-cxxmap - Mangled name remapping tool
SYNOPSIS
llvm-cxxmap [ options ] symbol-file-1 symbol-file-2
DESCRIPTION
The llvm-cxxmap tool performs fuzzy matching of C++ mangled names, based on a file describing name components that should be considered equivalent.
The symbol files should contain a list of C++ mangled names (one per line). Blank lines and lines starting with # are ignored. The output is a list of pairs of equivalent symbols, one per line, of the form
<symbol-1> <symbol-2>
where <symbol-1> is a symbol from symbol-file-1 and <symbol-2> is a symbol from symbol-file-2 . Mappings for which the two symbols are identical are omitted.
OPTIONS
-remapping-file=file, -r=file
Specify a file containing a list of equivalence rules that should be used to determine whether two symbols are equivalent. Required. See REMAPPING FILE .
-output=file, -o=file
Specify a file to write the list of matched names to. If unspecified, the list will be written to stdout.
-Wambiguous
Produce a warning if there are multiple equivalent (but distinct) symbols in symbol-file-2 .
-Wincomplete
Produce a warning if symbol-file-1 contains a symbol for which there is no equivalent symbol in symbol-file-2 .
REMAPPING FILE
The remapping file is a text file containing lines of the form
fragmentkind fragment1 fragment2
where fragmentkind is one of name , type , or encoding , indicating whether the following mangled name fragments are < name >s, < type >s, or < encoding >s, respectively. Blank lines and lines starting with # are ignored.
Unmangled C names can be expressed as an encoding that is a (length-prefixed) < source-name >:
# C function
"void foo_bar()" is remapped to C++ function
"void foo::bar()".
encoding 7foo_bar _Z3foo3barv
For convenience, built-in <substitution>s such as St and Ss are accepted as <name>s (even though they technically are not <name>s).
For example, to specify that absl::string_view and std::string_view should be treated as equivalent, the following remapping file could be used:
#
absl::string_view is considered equivalent to
std::string_view
type N4absl11string_viewE
St17basic_string_viewIcSt11char_traitsIcEE
# std:: might
be std::__1:: in libc++ or std::__cxx11:: in libstdc++
name St St3__1
name St St7__cxx11
NOTE:
Symbol remapping is currently only supported for C++ mangled names following the Itanium C++ ABI mangling scheme. This covers all C++ targets supported by Clang other than Windows targets.
AUTHOR
Maintained by the LLVM Team (https://llvm.org/).
COPYRIGHT
2003-2025, LLVM Project