LLVM-CXXMAP(1)
π LLVM-CXXMAP π
okay bestie, welcome to llvm-cxxmap, a page from the LLVM manual set. she's a mangled name remapping tool and she is that girl. let's get into it π¦
β¨ NAME β¨
llvm-cxxmap β mangled name remapping tool. that's the whole vibe. π
πΈ SYNOPSIS πΈ
llvm-cxxmap [options] symbol-file-1 symbol-file-2
two symbol files, some options, and a dream. periodt. π
π«Ά DESCRIPTION π«Ά
so what does she actually do. llvm-cxxmap performs fuzzy matching of C++ mangled names, and it does that based on a file describing name components that should be considered equivalent. like, "these two things? same thing, actually." iconic behavior. β¨
the symbol files should contain a list of C++ mangled names, one per line. blank lines and lines starting with # are ignored (she's not reading your commentary, bestie, she's just skimming). π
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. and here's the little twist: mappings for which the two symbols are identical are omitted. like yeah they match, but that's not tea, so she leaves it out. π
π 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. no remapping file, no service. see REMAPPING FILE below for the whole situation. π-output=file,-o=fileβ specify a file to write the list of matched names to. if unspecified, the list will be written tostdout. main character energy either way. π-Wambiguousβ produce a warning if there are multiple equivalent (but distinct) symbols in symbol-file-2. not one match, not two β several. she will let you know. π-Wincompleteβ produce a warning if symbol-file-1 contains a symbol for which there is no equivalent symbol in symbol-file-2. ghosted symbol detected. π
π 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 (http://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangle.name), <type>s (http://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangle.type), or <encoding>s (http://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangle.encoding), respectively. blank lines and lines starting with # are ignored β same rules as the symbol files, consistent queen. β¨
unmangled C names can be expressed as an encoding that is a (length-prefixed) <source-name> (http://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangle.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). she's flexible like that, we love a generous icon. π§
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. so if you're on a Windows targetβ¦ not today, bestie. π
β Author β
maintained by the LLVM Team (https://llvm.org/). absolute legends, no cap. π
π Copyright π
2003-2026, LLVM Project. the longevity. the legacy. the way she's been serving since 2003. π«Ά
and that's the whole page, bestie!! LLVM-CXXMAP(1) from the LLVM source, dated 2026-07-16, page 22 in the corner like a little crown. go remap something cute. mwah π
ππΈ
π¦ where this page comes from
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms