LLVM-CXXMAP(1)
π LLVM-CXXMAP(1) π
okay so this is the LLVM manual page for llvm-cxxmap, and bestie, it's literally the mangled name remapping tool π
. You're in the LLVM manual fam now, no cap π«Ά.
β¨ NAME β¨
llvm-cxxmap β the mangled name remapping tool, periodt. π
π¦ SYNOPSIS π¦
llvm-cxxmap [options] symbol-file-1 symbol-file-2
πΈ DESCRIPTION πΈ
okay so llvm-cxxmap does fuzzy matching of C++ mangled names πβ¨. The matching is based on a file that describes which name components should be considered equivalent β that file is kind of the main character here.
The symbol files should contain a list of C++ mangled names, one per line. Blank lines and lines starting with # are ignored, yes even here π«Ά. The output is a list of pairs of equivalent symbols, one per line, and it looks like this:
<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 where the two symbols are identical are omitted β not me being lazy, the tool does that π.
π OPTIONS π
-remapping-file=file,-r=fileβ point this at a file containing a list of equivalence rules that should be used to determine whether two symbols are equivalent. This one is required, bestie π. SeeREMAPPING FILEbelow.-output=file,-o=fileβ where to write the list of matched names. If unspecified, the list gets written tostdout.-Wambiguousβ produce a warning if there are multiple equivalent (but distinct) symbols insymbol-file-2π.-Wincompleteβ produce a warning ifsymbol-file-1contains a symbol for which there is no equivalent symbol insymbol-file-2π¬.
π REMAPPING FILE π
The remapping file is a text file containing lines that look like this:
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
πΈ aaaand that's the whole vibe! This page is LLVM-CXXMAP(1) from the LLVM manual source/version, section 19, dated 2025-01-17. bye bestie, go remap those mangled names π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms